Fix except clause syntax in JWT verification fallback #81
Reference in New Issue
Block a user
Delete Branch "feature/fix-except-clause-syntax-in-jwt-verification"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
ruff formatstripped parentheses fromexcept (jwt.InvalidTokenError, PyJWKClientError):, turning it into Python 2 comma syntax (except A, B:) which only catchesInvalidTokenErrorand binds it to the namePyJWKClientErrorPyJWKSetError(raised when JWKS returns empty keys) was never caught, causing the 500 to persist even after #80exceptclauses that ruff won't mangleTest plan
docker compose up --buildand verifyPOST /api/v1/runsworks with authentication