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

Function handle_forbidden_subclass

tests/test_basic.py:965–967  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

963
964 @app.errorhandler(ForbiddenSubclass)
965 def handle_forbidden_subclass(e):
966 assert isinstance(e, ForbiddenSubclass)
967 return "banana"
968
969 @app.errorhandler(403)
970 def handle_403(e):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected