From what I understand there is a PyJWT base JWT error: pyJWTError.
pyJWTError
It's implemented as follows:
try: jwt.decode(jwt_token, os.environ['SECRET'], algorithms=["HS256"]) except jwt.PyJWTError: # This catches EVERYTHING from PyJWT pass