mirror of
https://github.com/aljazceru/enclava.git
synced 2025-12-17 07:24:34 +01:00
tshoot rag memory leak
This commit is contained in:
@@ -345,7 +345,12 @@ async def refresh_token(
|
||||
expires_in=settings.ACCESS_TOKEN_EXPIRE_MINUTES * 60
|
||||
)
|
||||
|
||||
except HTTPException:
|
||||
# Re-raise HTTPException without modification
|
||||
raise
|
||||
except Exception as e:
|
||||
# Log the actual error for debugging
|
||||
logger.error(f"Refresh token error: {str(e)}", exc_info=True)
|
||||
raise HTTPException(
|
||||
status_code=status.HTTP_401_UNAUTHORIZED,
|
||||
detail="Invalid refresh token"
|
||||
|
||||
Reference in New Issue
Block a user