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

Function catchall_forbidden_handler

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

Source from the content-addressed store, hash-verified

192
193 @app.errorhandler(Forbidden)
194 def catchall_forbidden_handler(e):
195 assert isinstance(e, Forbidden)
196 return "forbidden"
197
198 @app.route("/forbidden")
199 def forbidden():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected