exception の変更

This commit is contained in:
2023-11-21 21:50:50 +09:00
parent 58616100f4
commit edad30e264

View File

@@ -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):