mirror of
https://github.com/langgenius/dify.git
synced 2026-04-29 12:37:20 +08:00
dev/reformat
This commit is contained in:
parent
6be5772a51
commit
5133623d42
@ -119,7 +119,7 @@ class PipelineGenerator(BaseAppGenerator):
|
|||||||
) -> Union[Mapping[str, Any], Generator[Mapping | str, None, None], None]:
|
) -> Union[Mapping[str, Any], Generator[Mapping | str, None, None], None]:
|
||||||
# Add null check for dataset
|
# Add null check for dataset
|
||||||
|
|
||||||
with Session(db.engine) as session:
|
with Session(db.engine, expire_on_commit=False) as session:
|
||||||
dataset = pipeline.retrieve_dataset(session)
|
dataset = pipeline.retrieve_dataset(session)
|
||||||
if not dataset:
|
if not dataset:
|
||||||
raise ValueError("Pipeline dataset is required")
|
raise ValueError("Pipeline dataset is required")
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user