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

Function handle_my_exception

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

Source from the content-addressed store, hash-verified

947
948 @app.errorhandler(MyException)
949 def handle_my_exception(e):
950 assert isinstance(e, MyException)
951 return "42"
952
953 @app.route("/")
954 def index():

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected