Skip to content

Commit

Permalink
Merge pull request #71 from MoonShineVFX/ple-1730
Browse files Browse the repository at this point in the history
Ple 1730
  • Loading branch information
rebeccaLinx authored Feb 9, 2023
2 parents dbc47c5 + d859168 commit 432c679
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion avalon/maya/workio.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,11 @@ def open_file(filepath):

# Load reference that is loaded in the scene file
for ref_node in ref_nodes_to_load:
cmds.file(loadReferenceDepth="asPrefs", loadReference=ref_node)
try:
cmds.file(loadReferenceDepth="asPrefs", loadReference=ref_node)
except Exception as e:
print("avalon.workio: Reference file failed: %s." % ref_node)
print(e)

except Exception as e:
try:
Expand Down
2 changes: 1 addition & 1 deletion avalon/tools/sceneinventory/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ def _on_accept(self):
self.log.error("Nothing selected")
return

for item in self._items:
for item in sorted(self._items):
try:
switch_item(item,
asset_name=asset,
Expand Down

0 comments on commit 432c679

Please sign in to comment.