Skip to content
Snippets Groups Projects
Unverified Commit ef9be7ec authored by Duncan Macleod's avatar Duncan Macleod
Browse files

application: improve logging of internal failures

parent e3387ddc
Branches main
No related tags found
No related merge requests found
Pipeline #504367 passed
...@@ -49,7 +49,9 @@ def _authorize(admin, environ, *auth_funcs): ...@@ -49,7 +49,9 @@ def _authorize(admin, environ, *auth_funcs):
uri, uri,
iswrite, iswrite,
) )
except: # something went wrong, try the next method except Exception as exc: # something went wrong, try the next method
msg = f"Caught internal {type(exc).__name__}: {exc}"
admin.log_and_set_http_code(500, 36, method, msg, uri)
continue continue
# if authorised, return that status # if authorised, return that status
if res[0] == 200: if res[0] == 200:
......
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