From c5918d044a47857c8caf4244c766538624b881f5 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 6 Sep 2024 11:29:00 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- push_notifications/apns.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/push_notifications/apns.py b/push_notifications/apns.py index c462a517..766062a7 100644 --- a/push_notifications/apns.py +++ b/push_notifications/apns.py @@ -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__)