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)