Fix the return types of __poll_gtfsr_deltas when API calls fail

This commit is contained in:
Nahuel Lofeudo 2023-05-07 06:20:02 +01:00
parent 864bf52d64
commit b8ad5b76de
1 changed files with 1 additions and 1 deletions

View File

@ -233,7 +233,7 @@ class GTFSClient():
response = requests.get(url = self.gtfs_r_url, headers = headers)
if response.status_code != 200:
print("GTFS-R sent non-OK response: {}\n{}".format(response.status_code, response.text))
return (None, None)
return ({}, [], [])
deltas_json = json.loads(response.text)
else: