Skip to content

Commit

Permalink
fix celery exception
Browse files Browse the repository at this point in the history
  • Loading branch information
wconti27 committed Jun 18, 2024
1 parent 265c923 commit ed0feff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ddtrace/contrib/celery/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ def trace_failure(*args, **kwargs):

# ensure we are getting the actual exception class which stores the exception message
exc = ex.exception
if getattr(exc, "exc"):
if hasattr(exc, "exc"):
exc = exc.exc

span.set_exc_info(ex.type, exc, ex.tb)
Expand Down

0 comments on commit ed0feff

Please sign in to comment.