We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4536418 commit 3b5e14eCopy full SHA for 3b5e14e
newrelic/hooks/framework_starlette.py
@@ -254,7 +254,7 @@ def instrument_starlette_exceptions(module):
254
# that it isn't being imported through a deprecation and double wrapped.
255
256
# After v0.45.0, the import proxy for ExceptionMiddleware was removed from starlette.exceptions
257
- if hasattr(module, "ExceptionMiddleware") and not hasattr(module, "__deprecated__"):
+ if not hasattr(module, "__deprecated__") and hasattr(module, "ExceptionMiddleware"):
258
259
wrap_function_wrapper(module, "ExceptionMiddleware.__call__", error_middleware_wrapper)
260
0 commit comments