mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-05-16 17:47:02 +02:00
Linting activities
This commit is contained in:
parent
b4829d650a
commit
361392ba71
6 changed files with 29 additions and 8 deletions
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue