From 7d6375484f7a1bdcccc3b90137a83887b44916ae Mon Sep 17 00:00:00 2001 From: Ben Souchet Date: Wed, 11 Sep 2024 13:35:18 +0200 Subject: [PATCH] Kitsu Collect Entities: Avoid crashes for folders (skip them) --- .../modules/kitsu/plugins/publish/collect_kitsu_entities.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/openpype/modules/kitsu/plugins/publish/collect_kitsu_entities.py b/openpype/modules/kitsu/plugins/publish/collect_kitsu_entities.py index 4ea8135620e..ffd1eb12d8d 100644 --- a/openpype/modules/kitsu/plugins/publish/collect_kitsu_entities.py +++ b/openpype/modules/kitsu/plugins/publish/collect_kitsu_entities.py @@ -27,7 +27,11 @@ def process(self, context): zou_asset_data = asset_doc["data"].get("zou") if not zou_asset_data: - raise ValueError("Zou asset data not found in OpenPype!") + # Ignore folders to avoid blocking the script. + # This is normal that folders aren't sync on OP + if asset_doc["data"].get('entityType') == 'Folder': + continue + raise ValueError("Kitsu asset data not found in OpenPype!") task_name = instance.data.get("task", context.data.get("task")) if not task_name: