From 9a4bb54ab4166fcff9b91c9eebd28a798e285bb4 Mon Sep 17 00:00:00 2001 From: hendrixx-cnc Date: Fri, 18 Sep 2026 20:36:07 -0700 Subject: [PATCH 1/2] fix(backend): parenthesize multiple exceptions in deps.py to prevent SyntaxError on Python <= 3.13 --- backend/app/api/deps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/api/deps.py b/backend/app/api/deps.py index 5f28ec692a..4fb1c6574b 100644 --- a/backend/app/api/deps.py +++ b/backend/app/api/deps.py @@ -33,7 +33,7 @@ def get_current_user(session: SessionDep, token: TokenDep) -> User: token, settings.SECRET_KEY, algorithms=[security.ALGORITHM] ) token_data = TokenPayload(**payload) - except InvalidTokenError, ValidationError: + except (InvalidTokenError, ValidationError): raise HTTPException( status_code=status.HTTP_403_FORBIDDEN, detail="Could not validate credentials", From af56548f4762b9f815283aabe2c02e2ebc519e4f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci-lite[bot]" <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Date: Sat, 19 Sep 2026 03:37:24 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=8E=A8=20Auto=20format=20and=20update?= =?UTF-8?q?=20with=20pre-commit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/api/deps.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/api/deps.py b/backend/app/api/deps.py index 4fb1c6574b..5f28ec692a 100644 --- a/backend/app/api/deps.py +++ b/backend/app/api/deps.py @@ -33,7 +33,7 @@ def get_current_user(session: SessionDep, token: TokenDep) -> User: token, settings.SECRET_KEY, algorithms=[security.ALGORITHM] ) token_data = TokenPayload(**payload) - except (InvalidTokenError, ValidationError): + except InvalidTokenError, ValidationError: raise HTTPException( status_code=status.HTTP_403_FORBIDDEN, detail="Could not validate credentials",