Skip to content

Alert retrieval doesnt work in offline mode #693

@wk9874

Description

@wk9874

If in offline mode, alert retrieval doesnt work. This is because self._get_attribute("alerts") returns a dictionary if online, and a list of IDs if offline. Then get_alert_details() tries to access the 'alerts' parameter, which fails for offline mode.

I dont know the best way to fix this since the details returned by the online mode arent easy to recover in offline mode (theyre written to a file from the Alert class). For now I plan to add a if offline check into .alerts which just retrieves and returns the list of IDs from staging

Metadata

Metadata

Assignees

Labels

ready for testingThis issue has been fixed and is ready for testing

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions