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

Function handle_403

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

Source from the content-addressed store, hash-verified

968
969 @app.errorhandler(403)
970 def handle_403(e):
971 assert not isinstance(e, ForbiddenSubclass)
972 assert isinstance(e, Forbidden)
973 return "apple"
974
975 @app.route("/1")
976 def index1():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected