Skip to content

Commit

Permalink
Merge branch 'develop-tests' into new-vectorstore-populator
Browse files Browse the repository at this point in the history
  • Loading branch information
TimPansino authored Jan 8, 2025
2 parents 169bf46 + 34e7024 commit ddf1589
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion newrelic/hooks/framework_starlette.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,9 @@ def instrument_starlette_middleware_exceptions(module):
def instrument_starlette_exceptions(module):
# ExceptionMiddleware was moved to starlette.middleware.exceptions, need to check
# that it isn't being imported through a deprecation and double wrapped.
if not hasattr(module, "__deprecated__"):

# After v0.45.0, the import proxy for ExceptionMiddleware was removed from starlette.exceptions
if not hasattr(module, "__deprecated__") and hasattr(module, "ExceptionMiddleware"):

wrap_function_wrapper(module, "ExceptionMiddleware.__call__", error_middleware_wrapper)

Expand Down

0 comments on commit ddf1589

Please sign in to comment.