Skip to content

Commit ca2a88b

Browse files
committed
refactor: remove print statement from AuthDependency error handling
- Eliminated the print statement for authentication errors in AuthDependency to streamline error handling and reduce console clutter.
1 parent 489b5dd commit ca2a88b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/backend/dependencies.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,6 @@ def _handle_auth_error(self, detail: str, status_code: int = 401) -> Optional[No
137137
"""Handle authentication errors based on auto_error setting"""
138138
if self.auto_error:
139139
headers = {"WWW-Authenticate": "Bearer"} if status_code == 401 else None
140-
print(f"Authentication error: {detail}")
141140
raise HTTPException(
142141
status_code=status_code,
143142
detail=detail,

0 commit comments

Comments
 (0)