Skip to content

Commit a48d978

Browse files
committed
wording
1 parent 281259b commit a48d978

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

sentry_sdk/integrations/flask.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff 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

tests/integrations/quart/test_quart.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
def 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:

0 commit comments

Comments
 (0)