Skip to content

Commit 74e576a

Browse files
committed
fix: weird exception
1 parent f7928b6 commit 74e576a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

api/app/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def get_user(token: Annotated[HTTPAuthorizationCredentials, Depends(security)]):
5454
algorithms=openid_configuration["id_token_signing_alg_values_supported"],
5555
options={"verify_aud": False},
5656
)
57-
except (jwt.exceptions.PyJWTError, Exception) as e:
57+
except jwt.exceptions.PyJWTError:
5858
raise HTTPException(
5959
status_code=status.HTTP_401_UNAUTHORIZED, detail=f"Invalid token"
6060
)

0 commit comments

Comments
 (0)