web-push-libs / pywebpush

Python Webpush Data encryption library
Mozilla Public License 2.0
303 stars 52 forks source link

Vapid01 instance is not accepted as a key object #137

Closed mthu closed 2 years ago

mthu commented 2 years ago

Since Vapid01 is a superclass of Vapid02 (and thus Vapid) in py_vapid library, following condition does not match the Vapid01 instance and the ongoing code treats the object as a string (and fails parsing it). https://github.com/web-push-libs/pywebpush/blob/a2dbc6f0f1fce632652ca6ea7654eabb5544cc9a/pywebpush/__init__.py#L461