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