File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,9 @@ def setup_once():
7878 if Flask == Quart :
7979 # This is Quart masquerading as Flask, don't enable the Flask
8080 # integration. See https://github.com/getsentry/sentry-python/issues/2709
81- raise DidNotEnable ("Quart is impersonating Flask" )
81+ raise DidNotEnable (
82+ "This is not a Flask app but rather Quart pretending to be Flask"
83+ )
8284 except ImportError :
8385 pass
8486
Original file line number Diff line number Diff line change 1818def quart_app_factory ():
1919 # These imports are inlined because the `test_quart_flask_patch` testcase
2020 # tests behavior that is triggered by importing a package before any Quart
21- # imports happen
21+ # imports happen, so we can't have these on the module level
2222 from quart import Quart
2323
2424 try :
You can’t perform that action at this time.
0 commit comments