From f7d755d9fe80959f222c720c4ee7a5d7fc425dc2 Mon Sep 17 00:00:00 2001 From: Roy Nieterau Date: Tue, 15 Jan 2019 10:20:47 +0100 Subject: [PATCH] Correctly pass on node paths for error message readability --- colorbleed/plugins/houdini/publish/validate_output_node.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/colorbleed/plugins/houdini/publish/validate_output_node.py b/colorbleed/plugins/houdini/publish/validate_output_node.py index 81b4e1e3d5..eb84ea721b 100644 --- a/colorbleed/plugins/houdini/publish/validate_output_node.py +++ b/colorbleed/plugins/houdini/publish/validate_output_node.py @@ -23,7 +23,6 @@ class ValidateOutputNode(pyblish.api.InstancePlugin): invalid = self.get_invalid(instance) if invalid: - invalid = [node.path() for node in invalid] raise RuntimeError("Output node(s) `%s` are incorrect. " "See plug-in log for details." % invalid) @@ -40,7 +39,7 @@ class ValidateOutputNode(pyblish.api.InstancePlugin): "Ensure a valid SOP output path is set." % node.path()) - return node.path() + return [node.path()] # Output node must be a Sop node. if not isinstance(output_node, hou.SopNode): @@ -51,7 +50,7 @@ class ValidateOutputNode(pyblish.api.InstancePlugin): output_node.type().category().name() ) ) - return [output_node] + return [output_node.path()] # For the sake of completeness also assert the category type # is Sop to avoid potential edge case scenarios even though