Skip to content

Commit 64f8f12

Browse files
fix(django): Add sync_capable to SentryWrappingMiddleware
Fixes #3506
1 parent 9df2b21 commit 64f8f12

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sentry_sdk/integrations/django/middleware.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ def sentry_wrapped_method(*args, **kwargs):
123123
class SentryWrappingMiddleware(
124124
_asgi_middleware_mixin_factory(_check_middleware_span) # type: ignore
125125
):
126+
sync_capable = getattr(middleware, "sync_capable", True)
126127
async_capable = getattr(middleware, "async_capable", False)
127128

128129
def __init__(self, get_response=None, *args, **kwargs):

0 commit comments

Comments
 (0)