Linting activities

This commit is contained in:
zandercymatics 2024-03-18 14:44:27 -06:00
parent b4829d650a
commit 361392ba71
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
6 changed files with 29 additions and 8 deletions

View file

@ -50,13 +50,13 @@ def error_page(request, error):
"""Display a sensible message and log the error."""
logger.error(error)
if isinstance(error, o_e.AuthenticationFailed):
context={
context = {
"friendly_message": error.friendly_message,
"log_identifier": error.locator,
}
return custom_401_error_view(request, context)
if isinstance(error, o_e.InternalError):
context={
context = {
"friendly_message": error.friendly_message,
"log_identifier": error.locator,
}