jpadilla / pyjwt

JSON Web Token implementation in Python
https://pyjwt.readthedocs.io
MIT License
5.18k stars 690 forks source link

pyjwt 2.10: AttributeError: module 'jwt.exceptions' has no attribute 'PyJWTError' #1019

Open stevegerrits opened 6 days ago

stevegerrits commented 6 days ago

Summary.

Expected Result

import jwt.exceptions.PyJWTError should work as expected

What you expected. Valid import

Actual Result

AttributeError

What happened instead. AttributeError

Reproduction Steps

import jwt.exceptions.PyJWTError

import jwt.exceptions.PyJWTError 
benvdh-incentro commented 12 hours ago

@stevegerrits you might want to try jwt.PyJWTError as the exceptions are all imported in the init.py and in that way made available directly on the package...