判断错误异常

This commit is contained in:
18610128193
2026-06-25 16:44:26 +08:00
parent 78c3f36ca2
commit 537c121361
+1 -1
View File
@@ -95,7 +95,7 @@ async def juliang_callback(
status_code=status.HTTP_400_BAD_REQUEST,
detail=str(e),
)
except HTTPException:
except HTTPException as e:
raise HTTPException(
status_code=status.HTTP_500_INTERNAL_SERVER_ERROR,
detail=f"授权失败: {str(e)}",