Skip to content

Commit

Permalink
chore: reformatting
Browse files Browse the repository at this point in the history
  • Loading branch information
kpsherva committed Feb 14, 2024
1 parent d7d2ee7 commit 5b1ac3a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions invenio_pages/ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ def wrap_errorhandler(app):
existing_handler = None

if existing_handler:
app.error_handler_spec[None][404][
NotFound
] = lambda error: handle_not_found(error, wrapped=existing_handler)
app.error_handler_spec[None][404][NotFound] = (
lambda error: handle_not_found(error, wrapped=existing_handler)
)
else:
app.error_handler_spec.setdefault(None, {}).setdefault(404, {})
app.error_handler_spec[None][404][NotFound] = handle_not_found
Expand Down

0 comments on commit 5b1ac3a

Please sign in to comment.