Skip to content
Snippets Groups Projects
Commit 6513c8b5 authored by Thomas Kluyver's avatar Thomas Kluyver
Browse files

Make serve_overview resistant against missing karabo-da in data-mapping

parent ba8710f6
No related branches found
No related tags found
1 merge request!948Make serve_overview resistant against missing karabo-da in data-mapping
...@@ -250,7 +250,7 @@ class RequestHandler(BaseHTTPRequestHandler): ...@@ -250,7 +250,7 @@ class RequestHandler(BaseHTTPRequestHandler):
tsize = 0 tsize = 0
for run in runs: for run in runs:
run = int(run) run = int(run)
if detector not in cal_config['data-mapping']: if 'karabo-da' not in cal_config['data-mapping'].get(detector, {}):
continue continue
# ToDo calculate tsize based on selected karabo-da # ToDo calculate tsize based on selected karabo-da
for mp in cal_config['data-mapping'][detector]['karabo-da']: for mp in cal_config['data-mapping'][detector]['karabo-da']:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment