From 1d0375f13d4c0e1b19b073b034d0c90f1d7d7186 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Samohel?= Date: Tue, 8 Oct 2019 11:32:56 +0000 Subject: [PATCH] fixed case where `host` in context doesn't exists yet --- pype/plugins/global/publish/collect_scene_version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pype/plugins/global/publish/collect_scene_version.py b/pype/plugins/global/publish/collect_scene_version.py index 3fac823b5c..0d76015909 100644 --- a/pype/plugins/global/publish/collect_scene_version.py +++ b/pype/plugins/global/publish/collect_scene_version.py @@ -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'))