Skip to content

Commit

Permalink
Fix types in opentracing span with new version of aioapns
Browse files Browse the repository at this point in the history
  • Loading branch information
bradtgmurray committed Sep 6, 2023
1 parent 196c4f9 commit 3f03a64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sygnal/apnspushkin.py
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ async def _dispatch_request(
return []
else:
# .description corresponds to the 'reason' response field
span.set_tag("apns_reason", response.description)
span.set_tag("apns_reason", response.description or "None")
if (code, response.description) in self.TOKEN_ERRORS:
log.info(
"APNs token %s for pushkin %s was rejected: %d %s",
Expand Down

0 comments on commit 3f03a64

Please sign in to comment.