Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

Fix/app list compatible (#29123)

zyssyz123031cba81b4c7
diff --git a/api/controllers/console/app/app.py b/api/controllers/console/app/app.py
index d6adacd84d0..8bb4d40778b 100644
--- a/api/controllers/console/app/app.py
+++ b/api/controllers/console/app/app.py
@@ -324,10 +324,13 @@ class AppListApi(Resource):
NodeType.TRIGGER_PLUGIN,
}
for workflow in draft_workflows:
- for _, node_data in workflow.walk_nodes():
- if node_data.get("type") in trigger_node_types:
- draft_trigger_app_ids.add(str(workflow.app_id))
- break
+ try:
+ for _, node_data in workflow.walk_nodes():
+ if node_data.get("type") in trigger_node_types:
+ draft_trigger_app_ids.add(str(workflow.app_id))
+ break
+ except Exception:
+ continue
for app in app_pagination.items:
app.has_draft_trigger = str(app.id) in draft_trigger_app_ids