Merge branch 'feat/memory-orchestration-be' into feat/memory-orchestration-be-dev-env

This commit is contained in:
Stream 2025-10-16 16:33:52 +08:00
commit 8aa4db0c77
No known key found for this signature in database
GPG Key ID: 033728094B100D70
1 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,7 @@ from typing import cast
from flask import abort, request
from flask_restx import Resource, fields, inputs, marshal_with, reqparse
from pydantic_core import ValidationError
from sqlalchemy.orm import Session
from werkzeug.exceptions import Forbidden, InternalServerError, NotFound
@ -188,6 +189,8 @@ class DraftWorkflowApi(Resource):
)
except WorkflowHashNotEqualError:
raise DraftWorkflowNotSync()
except ValidationError as e:
return {"message": str(e)}, 400
return {
"result": "success",