Skip to content

Commit

Permalink
Remove unnecessary exception
Browse files Browse the repository at this point in the history
  • Loading branch information
seallard committed Mar 8, 2024
1 parent 5e519a0 commit 3423a6d
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@ def authenticate(self, authorization_code: str) -> str:
def refresh_access_token(self, user_id: int) -> str:
"""Refresh the users access token."""
user: User = self.store.get_user_by_id(user_id)

if not user:
raise UserNotFoundError

refresh_token: str = self.encryption_service.decrypt(user.refresh_token)
access_token: str = self.google_oauth_client.get_access_token(refresh_token)

return access_token

0 comments on commit 3423a6d

Please sign in to comment.