Skip to content

KeyError: 'stop_time_update' #2

Open
@mhgwilliams

Description

@mhgwilliams

I've tried a few github projects using the mta api and am running into the same issue in multiple.
When running in normal configuration, nothing changed, I get this error:

Traceback (most recent call last):
  File "mta_notification.py", line 46, in <module>
    station_time_lookup(realtime_data, 'R36N')
  File "mta_notification.py", line 37, in station_time_lookup
    unique_arrival_times = unique_train_schedule['stop_time_update'] # arrival_times is a list of arrivals
KeyError: 'stop_time_update'

This is some sort of dictionary error, but I don't understand why it doesn't see this key when I can see it fine when printing that data.

Is it something to do with processing power? I'm running this on a Raspberry pi zero, quite low powered.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions