From b8ad5b76de31902d03b33b2a92167c1572e9c0f4 Mon Sep 17 00:00:00 2001 From: Nahuel Lofeudo Date: Sun, 7 May 2023 06:20:02 +0100 Subject: [PATCH] Fix the return types of __poll_gtfsr_deltas when API calls fail --- gtfs_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtfs_client.py b/gtfs_client.py index 51ae6ff..9977736 100644 --- a/gtfs_client.py +++ b/gtfs_client.py @@ -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: