Error 500 on tests.svg on invalid summary
I changed by hand the data of https://lhcb-nightlies.web.cern.ch/nightly/lhcb-run2-patches/1168 after LbNightlyTools#108 (closed), but there is an inconsistency now and we get an exception accessing https://lhcb-nightlies.web.cern.ch/nightly/lhcb-run2-patches/1168/tests.svg
ERROR:lb.nightly.frontend.application:Exception on /nightly/lhcb-run2-patches/1168/tests.svg [GET]
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 2073, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1518, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1516, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1502, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "/opt/web-app/lb/nightly/frontend/badges.py", line 38, in badge
return slot_badge(flavour, slot, build_id, kind)
File "/opt/web-app/lb/nightly/frontend/badges.py", line 323, in slot_badge
status, problems = extract_status(doc)
File "/opt/web-app/lb/nightly/frontend/badges.py", line 154, in extract_status
for result, test_names in list(tests_info["results"].items()):
KeyError: 'results'