mirror of
https://github.com/langgenius/dify.git
synced 2026-04-26 10:16:40 +08:00
Merge branch 'feat/memory-orchestration-be' into feat/memory-orchestration-be-dev-env
This commit is contained in:
commit
8aa4db0c77
@ -5,6 +5,7 @@ from typing import cast
|
|||||||
|
|
||||||
from flask import abort, request
|
from flask import abort, request
|
||||||
from flask_restx import Resource, fields, inputs, marshal_with, reqparse
|
from flask_restx import Resource, fields, inputs, marshal_with, reqparse
|
||||||
|
from pydantic_core import ValidationError
|
||||||
from sqlalchemy.orm import Session
|
from sqlalchemy.orm import Session
|
||||||
from werkzeug.exceptions import Forbidden, InternalServerError, NotFound
|
from werkzeug.exceptions import Forbidden, InternalServerError, NotFound
|
||||||
|
|
||||||
@ -188,6 +189,8 @@ class DraftWorkflowApi(Resource):
|
|||||||
)
|
)
|
||||||
except WorkflowHashNotEqualError:
|
except WorkflowHashNotEqualError:
|
||||||
raise DraftWorkflowNotSync()
|
raise DraftWorkflowNotSync()
|
||||||
|
except ValidationError as e:
|
||||||
|
return {"message": str(e)}, 400
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"result": "success",
|
"result": "success",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user