From edad30e2647f225b06ae0d093edaa2c54cbad2dc Mon Sep 17 00:00:00 2001 From: "maxiaozhe@alicorns.co.jp" Date: Tue, 21 Nov 2023 21:50:50 +0900 Subject: [PATCH] =?UTF-8?q?exception=20=E3=81=AE=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/db/crud.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/app/db/crud.py b/backend/app/db/crud.py index b3bf113..0462218 100644 --- a/backend/app/db/crud.py +++ b/backend/app/db/crud.py @@ -180,7 +180,7 @@ def get_flow(db: Session, flowid: str): def get_flows_by_app(db: Session, domainid: int, appid: str): flows = db.query(models.Flow).filter(and_(models.Flow.domainid == domainid,models.Flow.appid == appid)).all() if not flows: - raise HTTPException(status_code=404, detail="Data not found") + raise Exception("Data not found") return flows def create_domain(db: Session, domain: schemas.DomainBase):