fixed index access of iterable object

This commit is contained in:
iLLiCiTiT 2020-05-22 14:07:12 +02:00
parent b925090670
commit 6e27c92800

View file

@ -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: \"{}\"."