Improve error handling when loading files

master
Dan Howe 5 years ago
parent a6db6edbfd
commit 6f3a47f901

@ -233,7 +233,7 @@ def read_json_data(json_data):
html.Div()
])
elif json.loads(json_data)['error']:
elif 'error' in json.loads(json_data):
filename = json.loads(json_data)['error']
elements = html.Div([
dcc.Graph(figure={

Loading…
Cancel
Save