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

Method handle_exception

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

Source from the content-addressed store, hash-verified

287
288 @app.errorhandler(Exception)
289 def handle_exception(e):
290 return self.report_error(e)
291
292 assert client.get("/custom").data == b"direct Custom"
293 assert client.get("/error").data == b"direct KeyError"

Callers

nothing calls this directly

Calls 1

report_errorMethod · 0.95

Tested by

no test coverage detected