From fa40d56f176dd04c8d5a6a415fe5a9a617bd4592 Mon Sep 17 00:00:00 2001 From: Tomek Zawadzki Date: Tue, 18 Jun 2024 09:37:50 +0200 Subject: [PATCH] Fix missing key `authority` (#36) --- src/ttss/extractors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ttss/extractors.py b/src/ttss/extractors.py index 1c1ae9d..ad87925 100644 --- a/src/ttss/extractors.py +++ b/src/ttss/extractors.py @@ -174,7 +174,7 @@ def extract_route(data: dict, /) -> Route: return Route(id=data['id'], name=data['name'], type=data.get('routeType', None), - authority=data['authority'], + authority=data.get('authority', None), directions=data.get('directions', []), alerts=data['alerts'])