Skip to content

Commit

Permalink
Fix missing key authority (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomekzaw committed Jun 18, 2024
1 parent 156d0ee commit fa40d56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ttss/extractors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'])

Expand Down

0 comments on commit fa40d56

Please sign in to comment.