Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 6, 2024
1 parent 7b8d8c9 commit c5918d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion push_notifications/apns.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ def apns_send_message(registration_id, alert, application_id=None, creds=None, *
creds=creds, **kwargs
)
except apns2_errors.APNsException as apns2_exception:
if isinstance(apns2_exception, apns2_errors.Unregistered):
if isinstance(apns2_exception, apns2_errors.Unregistered):
models.APNSDevice.objects.filter(registration_id=registration_id).update(active=False)

raise APNSServerError(status=apns2_exception.__class__.__name__)
Expand Down

0 comments on commit c5918d0

Please sign in to comment.