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

Commit

Permalink
Merge pull request #1806 from pypeclub/bugfix/3-x_nuke_cross_project_…
Browse files Browse the repository at this point in the history
…containers

Failsafe for cross project containers.
  • Loading branch information
iLLiCiTiT authored Jul 21, 2021
2 parents 7347105 + 89957fc commit cb3aad9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions openpype/hosts/nuke/api/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,14 @@ def check_inventory_versions():
"_id": io.ObjectId(avalon_knob_data["representation"])
})

# Failsafe for not finding the representation.
if not representation:
log.warning(
"Could not find the representation on "
"node \"{}\"".format(node.name())
)
continue

# Get start frame from version data
version = io.find_one({
"type": "version",
Expand Down

0 comments on commit cb3aad9

Please sign in to comment.