mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
Update publish error label and message - add log.error
This commit is contained in:
parent
6b3bb3f585
commit
e6c52f0430
2 changed files with 10 additions and 6 deletions
|
|
@ -248,14 +248,16 @@ def render_rop(ropnode):
|
|||
# Render only this node
|
||||
# (do not render any of its dependencies)
|
||||
ignore_inputs=True)
|
||||
except hou.Error:
|
||||
except hou.Error as exc:
|
||||
# The hou.Error is not inherited from a Python Exception class,
|
||||
# so we explicitly capture the houdini error, otherwise pyblish
|
||||
# will remain hanging.
|
||||
import traceback
|
||||
traceback.print_exc()
|
||||
raise KnownPublishError("'{}' failed to render!".format(ropnode.path()),
|
||||
label="Render was interrupted or canceled.")
|
||||
self.log.error("Exception: {}".format(exc))
|
||||
raise KnownPublishError("Render maybe interrupted. "
|
||||
"Check Details tab for more info.",
|
||||
label="Failed to render '{}'".format(ropnode.path()))
|
||||
|
||||
|
||||
def imprint(node, data, update=False):
|
||||
|
|
|
|||
|
|
@ -33,9 +33,11 @@ class ExtractMantraIFD(publish.Extractor):
|
|||
os.path.normpath(os.path.join(staging_dir, frame)))
|
||||
]
|
||||
if missing_frames:
|
||||
raise KnownPublishError("Failed to complete Mantra ifd extraction. ",
|
||||
# "Missing output files: {}".format(missing_frames),
|
||||
label="Render was interrupted or canceled.")
|
||||
self.log.error("Missing output files: {}".format(missing_frames))
|
||||
raise KnownPublishError("Extraction was failed due to missing frames. "
|
||||
"Check Details tab for more info.",
|
||||
label="Failed to complete Mantra ifd extraction for '{}'."
|
||||
.format(ropnode.path()))
|
||||
|
||||
if "representations" not in instance.data:
|
||||
instance.data["representations"] = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue