Browse Source

任务登记模块更新

xuguoyang 11 tháng trước cách đây
mục cha
commit
e60400e7f4
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      routers/api/taskRegistration/__init__.py

+ 1 - 1
routers/api/taskRegistration/__init__.py

@@ -135,4 +135,4 @@ async def update_task_status(
 
     except Exception as e:
         db.rollback()
-        return Response(content=str(e), status_code=500)
+        raise HTTPException(status_code=500, detail=str(e))