mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-21 01:39:51 +00:00
AbstractHafasClientInterfaceProvider: Ignore errors in ServerInfo responses.
This commit is contained in:
parent
667166bbc9
commit
bf1eb524e4
1 changed files with 2 additions and 1 deletions
|
@ -722,7 +722,8 @@ public abstract class AbstractHafasClientInterfaceProvider extends AbstractHafas
|
|||
final String err = serverInfo.optString("err", null);
|
||||
if (err != null && !"OK".equals(err)) {
|
||||
final String errTxt = serverInfo.optString("errTxt");
|
||||
throw new RuntimeException(err + " " + errTxt);
|
||||
log.info("ServerInfo error: {} {}, ignoring", err, errTxt);
|
||||
return new ResultHeader(network, SERVER_PRODUCT, serverVersion, null, 0, null);
|
||||
}
|
||||
final JSONObject res = serverInfo.getJSONObject("res");
|
||||
final Calendar c = new GregorianCalendar(timeZone);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue