Skip to content

Commit

Permalink
mypy??
Browse files Browse the repository at this point in the history
  • Loading branch information
sentrivana committed Jun 27, 2023
1 parent 87888de commit 37e9262
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sentry_sdk/integrations/celery.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,13 +161,13 @@ def apply_async(*args, **kwargs):

existing_baggage = kwarg_headers.get(BAGGAGE_HEADER_NAME)
sentry_baggage = headers.get(BAGGAGE_HEADER_NAME)

combined_baggage = sentry_baggage or existing_baggage
if sentry_baggage and existing_baggage:
combined_baggage = "{},{}".format(
existing_baggage,
sentry_baggage,
)
else:
combined_baggage = sentry_baggage or existing_baggage

kwarg_headers.update(headers)
if combined_baggage:
Expand Down

0 comments on commit 37e9262

Please sign in to comment.