0001-pwa-delete-pwa-push-subscription-on-410-errors-41304.patch
combo/apps/pwa/signals.py | ||
---|---|---|
59 | 59 |
vapid_claims=claims, |
60 | 60 |
) |
61 | 61 |
except pywebpush.WebPushException as e: |
62 |
if str(e) == 'Push failed: 410 Gone': |
|
63 |
subscription.delete() |
|
64 |
continue |
|
62 | 65 |
logger = logging.getLogger(__name__) |
63 | 66 |
logger.exception('webpush error (%r)', e) |
64 |
- |