File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -361,14 +361,13 @@ def patch_middlewares():
361361 not_yet_patched = "_sentry_middleware_init" not in str (old_middleware_init )
362362
363363 if not_yet_patched :
364-
365- def _sentry_middleware_init (self , cls , ** options ):
364+ def _sentry_middleware_init (self , cls , * args , ** kwargs ):
366365 # type: (Any, Any, Any) -> None
367366 if cls == SentryAsgiMiddleware :
368- return old_middleware_init (self , cls , ** options )
367+ return old_middleware_init (self , cls , * args , ** kwargs )
369368
370369 span_enabled_cls = _enable_span_for_middleware (cls )
371- old_middleware_init (self , span_enabled_cls , ** options )
370+ old_middleware_init (self , span_enabled_cls , * args , ** kwargs )
372371
373372 if cls == AuthenticationMiddleware :
374373 patch_authentication_middleware (cls )
You can’t perform that action at this time.
0 commit comments