fixed case where host in context doesn't exists yet

This commit is contained in:
Ondřej Samohel 2019-10-08 11:32:56 +00:00
parent f769acda5a
commit 1d0375f13d

View file

@ -13,7 +13,7 @@ class CollectSceneVersion(pyblish.api.ContextPlugin):
label = 'Collect Version'
def process(self, context):
if "standalonepublisher" in context.data.get("host"):
if "standalonepublisher" in context.data.get("host", []):
return
filename = os.path.basename(context.data.get('currentFile'))