From 5b5e6179614cf5218d4f1dccda7df8a1ef793284 Mon Sep 17 00:00:00 2001 From: Roy Nieterau Date: Tue, 27 Mar 2018 15:03:29 +0200 Subject: [PATCH] Ignore nodes without id --- .../plugins/maya/publish/validate_node_ids_in_database.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/colorbleed/plugins/maya/publish/validate_node_ids_in_database.py b/colorbleed/plugins/maya/publish/validate_node_ids_in_database.py index 7d13cf021f..0493779da2 100644 --- a/colorbleed/plugins/maya/publish/validate_node_ids_in_database.py +++ b/colorbleed/plugins/maya/publish/validate_node_ids_in_database.py @@ -47,6 +47,11 @@ class ValidateNodeIdsInDatabase(pyblish.api.InstancePlugin): # Get all asset IDs for node in id_required_nodes: cb_id = lib.get_id(node) + + # Ignore nodes without id, those are validated elsewhere + if not cb_id: + continue + asset_id = cb_id.split(":", 1)[0] if asset_id not in db_asset_ids: cls.log.error("`%s` has unassociated asset ID" % node)