MCPcopy Create free account
hub / github.com/pallets/flask / catchall_exception_handler

Function catchall_exception_handler

tests/test_user_error_handler.py:188–191  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

186
187 @app.errorhandler(HTTPException)
188 def catchall_exception_handler(e):
189 assert isinstance(e, HTTPException)
190 assert isinstance(e, NotFound)
191 return "default"
192
193 @app.errorhandler(Forbidden)
194 def catchall_forbidden_handler(e):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected