From 4f056714b29773c35c32b9df88261f5004001442 Mon Sep 17 00:00:00 2001 From: Nahuel Lofeudo Date: Sat, 22 Apr 2023 13:10:39 +0100 Subject: [PATCH] Remove empty space around the key --- gtfs_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtfs_client.py b/gtfs_client.py index 30acd6b..6ab6ef6 100644 --- a/gtfs_client.py +++ b/gtfs_client.py @@ -17,7 +17,7 @@ import zipfile class GTFSClient(): GTFS_URL = "https://api.nationaltransport.ie/gtfsr/v2/gtfsr?format=json" - API_KEY = open("api-key.txt").read() + API_KEY = open("api-key.txt").read().trim() def __init__(self, feed_url: str, stop_codes: list[str], update_queue: queue.Queue, update_interval_seconds: int = 60): self.stop_codes = stop_codes