We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a2dbc6f commit 248cd43Copy full SHA for 248cd43
pywebpush/__init__.py
@@ -19,7 +19,7 @@
19
from cryptography.hazmat.backends import default_backend
20
from cryptography.hazmat.primitives.asymmetric import ec
21
from cryptography.hazmat.primitives import serialization
22
-from py_vapid import Vapid
+from py_vapid import Vapid, Vapid01
23
24
25
class WebPushException(Exception):
@@ -458,7 +458,7 @@ def webpush(subscription_info,
458
vapid_claims['exp']))
459
if not vapid_private_key:
460
raise WebPushException("VAPID dict missing 'private_key'")
461
- if isinstance(vapid_private_key, Vapid):
+ if isinstance(vapid_private_key, Vapid01):
462
vv = vapid_private_key
463
elif os.path.isfile(vapid_private_key):
464
# Presume that key from file is handled correctly by
0 commit comments