Commit 012a408d authored by Martin Schorb's avatar Martin Schorb
Browse files

fix error when missing stack requested

parent dbc0dfe7
......@@ -37,6 +37,9 @@ def stacktoparams(stack_sel,allstacks):
if 'None' in (stackparams['stackId']['owner'],stackparams['stackId']['project']):
return dash.no_update
if not 'stats' in stackparams.keys():
return dash.no_update
thisstore['stack'] = stackparams['stackId']['stack']
thisstore['stackparams'] = stackparams
......
......@@ -72,7 +72,10 @@ for idx in range(params.max_tileviews):
if 'None' in (stackparams['stackId']['owner'],stackparams['stackId']['project']):
return dash.no_update
if not 'stats' in stackparams.keys():
return dash.no_update
o_min = stackparams['stats']['stackBounds']['minZ']
o_max = stackparams['stats']['stackBounds']['maxZ']
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment