Skip to content

Changing generic except Exception to PyJWTError #6

@finomayato

Description

@finomayato

https://github.com/auth0-blog/auth0-python-fastapi-sample/blob/main/application/utils.py#L58

All pyjwt exceptions inherit from the PyJWTError which we can use instead of the generic Exception.

Source of truth: https://github.com/jpadilla/pyjwt/blob/master/jwt/exceptions.py#L1-L6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions