Possibly fixed false positives on exception detection
All checks were successful
Tests / test (3.10) (push) Successful in 48s
Tests / test (3.11) (push) Successful in 46s
Tests / test (3.12) (push) Successful in 56s
Tests / test (3.8) (push) Successful in 47s
Tests / test (3.9) (push) Successful in 50s

This commit is contained in:
Profitroll 2024-09-19 22:03:57 +02:00
parent c06d90b7ce
commit dfb472a4e8
Signed by: profitroll
GPG Key ID: FA35CAB49DACD3B2

View File

@ -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"])