Skip to content

Commit

Permalink
Merge pull request #166 from BigRoy/enhancement/load_warnings_more_si…
Browse files Browse the repository at this point in the history
…lently

Do not error on Load Warnings, but instead just log them.
  • Loading branch information
BigRoy authored Nov 13, 2024
2 parents b03419b + 00b70ab commit 11f5140
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions client/ayon_houdini/api/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,12 @@ def open_workfile(self, filepath):
# Force forwards slashes to avoid segfault
filepath = filepath.replace("\\", "/")

hou.hipFile.load(filepath,
suppress_save_prompt=True,
ignore_load_warnings=False)
try:
hou.hipFile.load(filepath,
suppress_save_prompt=True,
ignore_load_warnings=False)
except hou.LoadWarning as exc:
log.warning(exc)

return filepath

Expand Down

0 comments on commit 11f5140

Please sign in to comment.