Skip to content

Commit

Permalink
Revert "Fix: except not enough segment exception"
Browse files Browse the repository at this point in the history
This reverts commit 802e1de.
  • Loading branch information
Rotheem committed Sep 29, 2024
1 parent 802e1de commit 02b2463
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions app/utils/auth/auth_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import jwt
from fastapi import HTTPException, status
from jwt.exceptions import DecodeError, ExpiredSignatureError, InvalidTokenError
from jwt.exceptions import ExpiredSignatureError, InvalidTokenError
from pydantic import ValidationError
from sqlalchemy.ext.asyncio import AsyncSession

Expand Down Expand Up @@ -49,14 +49,6 @@ def get_token_data(
status_code=status.HTTP_403_FORBIDDEN,
detail="Token has expired",
) from error
except DecodeError as error:
hyperion_access_logger.exception(
f"Get_token_data: Failed to decode a token ({request_id})",
)
raise HTTPException(
status_code=status.HTTP_403_FORBIDDEN,
detail="Could not validate credentials",
) from error

return token_data

Expand Down

0 comments on commit 02b2463

Please sign in to comment.