Skip to content

Missing station data error is not handled well #229

Description

@rod-glover

Symptoms: Local deployment, which in my case lacks station data, throws a not very helpful error which is not caught and causes the app to misbehave.

Error message from dev mode:

Traceback (most recent call last):
  File "/codebase/dve/callbacks/map_figure.py", line 332, in update_map
    df = get_data_object(
AttributeError: 'NoneType' object has no attribute 'data_frame'

The data object being gotten is the station data.

Note: Production deployment has these files, but in case it doesn't it would be good to display a helpful error message instead of just screw up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions