We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent afc488d commit 0f31135Copy full SHA for 0f31135
sentry_sdk/integrations/quart.py
@@ -38,7 +38,6 @@
38
request,
39
websocket,
40
)
41
- from quart.scaffold import Scaffold # type: ignore
42
from quart.signals import ( # type: ignore
43
got_background_exception,
44
got_request_exception,
@@ -49,6 +48,12 @@
49
48
from quart.utils import is_coroutine_function # type: ignore
50
except ImportError:
51
raise DidNotEnable("Quart is not installed")
+else:
52
+ # Quart 0.19 is based on Flask and hence no longer has a Scaffold
53
+ try:
54
+ from quart.scaffold import Scaffold # type: ignore
55
+ except ImportError:
56
+ from flask.sansio.scaffold import Scaffold # type: ignore
57
58
TRANSACTION_STYLE_VALUES = ("endpoint", "url")
59
0 commit comments