判断错误异常
This commit is contained in:
@@ -95,7 +95,7 @@ async def juliang_callback(
|
|||||||
status_code=status.HTTP_400_BAD_REQUEST,
|
status_code=status.HTTP_400_BAD_REQUEST,
|
||||||
detail=str(e),
|
detail=str(e),
|
||||||
)
|
)
|
||||||
except HTTPException:
|
except HTTPException as e:
|
||||||
raise HTTPException(
|
raise HTTPException(
|
||||||
status_code=status.HTTP_500_INTERNAL_SERVER_ERROR,
|
status_code=status.HTTP_500_INTERNAL_SERVER_ERROR,
|
||||||
detail=f"授权失败: {str(e)}",
|
detail=f"授权失败: {str(e)}",
|
||||||
|
|||||||
Reference in New Issue
Block a user