From 1a746aa2804174b1066f4a9d1a761f7e9b00b748 Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Wed, 1 Jul 2020 16:40:02 +0200 Subject: [PATCH] dont use None as default value when looking for matching template key --- pype/plugins/global/publish/integrate_new.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pype/plugins/global/publish/integrate_new.py b/pype/plugins/global/publish/integrate_new.py index 040ed9cd67..0ec8045448 100644 --- a/pype/plugins/global/publish/integrate_new.py +++ b/pype/plugins/global/publish/integrate_new.py @@ -727,7 +727,7 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin): task_name = io.Session.get("AVALON_TASK") family = self.main_family_from_instance(instance) - matching_profiles = None + matching_profiles = {} highest_value = -1 self.log.info(self.template_name_profiles) for name, filters in self.template_name_profiles.items(): @@ -745,7 +745,6 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin): value += 1 if value > highest_value: - matching_profiles = {} highest_value = value if value == highest_value: