From 6e27c92800ccefb5b2be143234227b51f13162cd Mon Sep 17 00:00:00 2001 From: iLLiCiTiT Date: Fri, 22 May 2020 14:07:12 +0200 Subject: [PATCH] fixed index access of iterable object --- pype/plugins/global/publish/integrate_new.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pype/plugins/global/publish/integrate_new.py b/pype/plugins/global/publish/integrate_new.py index 0cd46d8891..bd908901cc 100644 --- a/pype/plugins/global/publish/integrate_new.py +++ b/pype/plugins/global/publish/integrate_new.py @@ -743,13 +743,13 @@ class IntegrateAssetNew(pyblish.api.InstancePlugin): matching_profiles[name] = filters if len(matching_profiles) == 1: - template_name = matching_profiles.keys()[0] + template_name = tuple(matching_profiles.keys())[0] self.log.debug( "Using template name \"{}\".".format(template_name) ) elif len(matching_profiles) > 1: - template_name = matching_profiles.keys()[0] + template_name = tuple(matching_profiles.keys())[0] self.log.warning(( "More than one template profiles matched" " Family \"{}\" and Task: \"{}\"."