Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

[QUAD] Kitsu Collect Entities: Avoid crashes for folders (skip them) #6311

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Loading