Skip to content
Snippets Groups Projects
Commit fb22c6df authored by Simon Künzel's avatar Simon Künzel
Browse files

Fix 'unavailable' status, Closes #27

parent 17eb159e
No related branches found
No related tags found
1 merge request!2Rollout to production
......@@ -29,7 +29,9 @@ def api_route_status():
try:
announcements.extend(query_announcements())
except Exception:
status = "unavailable"
# We do NOT return status 'unavailable' because the status is the EXPECTED status. If there is an unexpected
# db failure, we want errors to show up and not just 'Site not available'
pass
response = {
"status": status,
"is_debug": DEBUG_ENABLED,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment