From 2aea1cd8fc9a5c43e937ab70255454a1cc31a3bd Mon Sep 17 00:00:00 2001 From: Jakub Jezek Date: Wed, 22 Nov 2023 14:52:11 +0100 Subject: [PATCH] avoid situation where missing `outputName` this might happen if only one Intermediate reviewable file stream is used. --- openpype/plugins/publish/extract_thumbnail.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openpype/plugins/publish/extract_thumbnail.py b/openpype/plugins/publish/extract_thumbnail.py index a46c3acf12..2948f80ce5 100644 --- a/openpype/plugins/publish/extract_thumbnail.py +++ b/openpype/plugins/publish/extract_thumbnail.py @@ -180,7 +180,8 @@ class ExtractThumbnail(pyblish.api.InstancePlugin): if explicit_repres: # this key will then align assetVersion ftrack thumbnail sync - new_repre["outputName"] = repre["outputName"] + new_repre["outputName"] = ( + repre.get("outputName") or repre["name"]) self.log.debug( "Adding explicit thumbnail representation: {}".format( new_repre))