0001-pwa-don-t-crash-if-X.962-serialization-is-not-availa.patch
combo/apps/pwa/views.py | ||
---|---|---|
47 | 47 |
template = get_template(template_name) |
48 | 48 |
pwa_vapid_public_key = None |
49 | 49 |
pwa_settings = PwaSettings.singleton() |
50 |
if pwa_settings.push_notifications: |
|
50 |
if pwa_settings.push_notifications and hasattr(serialization.Encoding, 'X962'):
|
|
51 | 51 |
if settings.PWA_VAPID_PUBLIK_KEY: # legacy |
52 | 52 |
pwa_vapid_public_key = settings.PWA_VAPID_PUBLIK_KEY |
53 | 53 |
else: |
54 |
- |