pacificclimate / design-value-explorer

Web application for interactively visualizing and downloading design value fields and tables.
GNU General Public License v3.0
0 stars 0 forks source link

Missing station data error is not handled well #229

Open rod-glover opened 2 years ago

rod-glover commented 2 years ago

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.

rod-glover commented 2 years ago

Note: This happened because I lost my VPN connection to /storage, and so couldn't access a number of files. That will be worth testing more thoroughly.