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

Commit

Permalink
Kitsu Collect Entities: Avoid crashes for folders (skip them)
Browse files Browse the repository at this point in the history
  • Loading branch information
BenSouchet committed Sep 11, 2024
1 parent d9731d0 commit 7d63754
Showing 1 changed file with 5 additions and 1 deletion.
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

0 comments on commit 7d63754

Please sign in to comment.