🎨 [pre-commit.ci] Auto format from pre-commit.com hooks

This commit is contained in:
pre-commit-ci[bot] 2023-10-07 20:52:42 +00:00
parent b304109c2f
commit fe216eb467
5 changed files with 5 additions and 5 deletions

View File

@ -98,7 +98,7 @@ async def get_current_user(token: str = Depends(oauth2_scheme)):
if username is None:
raise credentials_exception
token_data = TokenData(username=username)
except ExpiredSignatureError: # Check signature expiry
except ExpiredSignatureError: # Check signature expiry
raise credentials_exception
except JWTError:
raise credentials_exception

View File

@ -99,7 +99,7 @@ async def get_current_user(token: Annotated[str, Depends(oauth2_scheme)]):
if username is None:
raise credentials_exception
token_data = TokenData(username=username)
except ExpiredSignatureError: # Check signature expiry
except ExpiredSignatureError: # Check signature expiry
raise credentials_exception
except JWTError:
raise credentials_exception

View File

@ -98,7 +98,7 @@ async def get_current_user(token: Annotated[str, Depends(oauth2_scheme)]):
if username is None:
raise credentials_exception
token_data = TokenData(username=username)
except ExpiredSignatureError: # Check signature expiry
except ExpiredSignatureError: # Check signature expiry
raise credentials_exception
except JWTError:
raise credentials_exception

View File

@ -98,7 +98,7 @@ async def get_current_user(token: Annotated[str, Depends(oauth2_scheme)]):
if username is None:
raise credentials_exception
token_data = TokenData(username=username)
except ExpiredSignatureError: # Check signature expiry
except ExpiredSignatureError: # Check signature expiry
raise credentials_exception
except JWTError:
raise credentials_exception

View File

@ -97,7 +97,7 @@ async def get_current_user(token: str = Depends(oauth2_scheme)):
if username is None:
raise credentials_exception
token_data = TokenData(username=username)
except ExpiredSignatureError: # Check signature expiry
except ExpiredSignatureError: # Check signature expiry
raise credentials_exception
except JWTError:
raise credentials_exception