Possibly fixed false positives on exception detection
This commit is contained in:
parent
c06d90b7ce
commit
dfb472a4e8
@ -150,7 +150,7 @@ class Client:
|
||||
boardType=board_type.code,
|
||||
)
|
||||
|
||||
find_exception(board_raw)
|
||||
find_exception(board_raw.copy())
|
||||
|
||||
return BoardArrival(
|
||||
board_raw,
|
||||
@ -219,7 +219,7 @@ class Client:
|
||||
boardType=board_type.code,
|
||||
)
|
||||
|
||||
find_exception(board_raw)
|
||||
find_exception(board_raw.copy())
|
||||
|
||||
return BoardDeparture(
|
||||
board_raw,
|
||||
@ -343,7 +343,7 @@ class Client:
|
||||
minprio=priority_min,
|
||||
)
|
||||
|
||||
find_exception(messages_raw)
|
||||
find_exception(messages_raw.copy())
|
||||
|
||||
if "Message" in messages_raw:
|
||||
messages.extend(Message(message) for message in messages_raw["Message"])
|
||||
@ -402,7 +402,7 @@ class Client:
|
||||
toIdx=to_index,
|
||||
)
|
||||
|
||||
find_exception(journey_raw)
|
||||
find_exception(journey_raw.copy())
|
||||
|
||||
return Journey(journey_raw)
|
||||
|
||||
@ -481,7 +481,7 @@ class Client:
|
||||
locationSelectionMode=selection_mode, # type: ignore
|
||||
)
|
||||
|
||||
find_exception(stops_raw)
|
||||
find_exception(stops_raw.copy())
|
||||
|
||||
if "stopLocationOrCoordLocation" in stops_raw:
|
||||
for stop in stops_raw["stopLocationOrCoordLocation"]:
|
||||
@ -536,7 +536,7 @@ class Client:
|
||||
accessId=self.access_id, inputString=query, lang=lang.code, maxNo=1
|
||||
)
|
||||
|
||||
find_exception(stops_raw)
|
||||
find_exception(stops_raw.copy())
|
||||
|
||||
if len(stops_raw["stopLocationOrCoordLocation"]) <= 0:
|
||||
return None
|
||||
@ -642,7 +642,7 @@ class Client:
|
||||
filterMode=filter_mode.code,
|
||||
)
|
||||
|
||||
find_exception(stops_raw)
|
||||
find_exception(stops_raw.copy())
|
||||
|
||||
if "stopLocationOrCoordLocation" in stops_raw:
|
||||
for stop in stops_raw["stopLocationOrCoordLocation"]:
|
||||
@ -833,7 +833,7 @@ class Client:
|
||||
withFreq=frequency,
|
||||
)
|
||||
|
||||
find_exception(trips_raw)
|
||||
find_exception(trips_raw.copy())
|
||||
|
||||
if "Trip" in trips_raw:
|
||||
trips.extend(Trip(trip) for trip in trips_raw["Trip"])
|
||||
@ -913,7 +913,7 @@ class Client:
|
||||
trafficMessages=messages,
|
||||
)
|
||||
|
||||
find_exception(trips_raw)
|
||||
find_exception(trips_raw.copy())
|
||||
|
||||
if "Trip" in trips_raw:
|
||||
trips.extend(Trip(trip) for trip in trips_raw["Trip"])
|
||||
|
Loading…
Reference in New Issue
Block a user