Added one more check for correct response return
This commit is contained in:
parent
f8b13ccedf
commit
6b6299cd0a
@ -301,6 +301,7 @@ class Client():
|
||||
|
||||
find_exception(messages_raw)
|
||||
|
||||
if "Message" in messages_raw:
|
||||
for message in messages_raw["Message"]:
|
||||
messages.append(Message(message))
|
||||
|
||||
@ -402,6 +403,7 @@ class Client():
|
||||
|
||||
find_exception(stops_raw)
|
||||
|
||||
if "stopLocationOrCoordLocation" in stops_raw:
|
||||
for stop in stops_raw["stopLocationOrCoordLocation"]:
|
||||
if "StopLocation" in stop:
|
||||
stops.append(Stop(stop["StopLocation"]))
|
||||
@ -504,6 +506,7 @@ class Client():
|
||||
|
||||
find_exception(stops_raw)
|
||||
|
||||
if "stopLocationOrCoordLocation" in stops_raw:
|
||||
for stop in stops_raw["stopLocationOrCoordLocation"]:
|
||||
if "StopLocation" in stop:
|
||||
stops.append(Stop(stop["StopLocation"]))
|
||||
@ -697,6 +700,7 @@ class Client():
|
||||
|
||||
find_exception(trips_raw)
|
||||
|
||||
if "Trip" in trips_raw:
|
||||
for trip in trips_raw["Trip"]:
|
||||
trips.append(Trip(trip))
|
||||
|
||||
@ -770,6 +774,7 @@ class Client():
|
||||
|
||||
find_exception(trips_raw)
|
||||
|
||||
if "Trip" in trips_raw:
|
||||
for trip in trips_raw["Trip"]:
|
||||
trips.append(Trip(trip))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user