8000
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 b3ccf96 commit 5c17491Copy full SHA for 5c17491
sentry_sdk/integrations/quart.py
@@ -1,5 +1,6 @@
1
from __future__ import absolute_import
2
3
+import asyncio
4
import inspect
5
import threading
6
@@ -45,7 +46,6 @@
45
46
request_started,
47
websocket_started,
48
)
- from quart.utils import is_coroutine_function # type: ignore
49
except ImportError:
50
raise DidNotEnable("Quart is not installed")
51
else:
@@ -113,7 +113,9 @@ def _sentry_route(*args, **kwargs):
113
def decorator(old_func):
114
# type: (Any) -> Any
115
116
- if inspect.isfunction(old_func) and not is_coroutine_function(old_func):
+ if inspect.isfunction(old_func) and not asyncio.iscoroutinefunction(
117
+ old_func
118
+ ):
119
120
@wraps(old_func)
121
def _sentry_func(*args, **kwargs):
0 commit comments