From 13519cfcda8cf71ee772328f8aaa689d9168523b Mon Sep 17 00:00:00 2001 From: Petr Kalis Date: Thu, 3 Feb 2022 14:54:19 +0100 Subject: [PATCH] OP-2505 - added return --- openpype/lib/remote_publish.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openpype/lib/remote_publish.py b/openpype/lib/remote_publish.py index ced03ea613..871eb82f11 100644 --- a/openpype/lib/remote_publish.py +++ b/openpype/lib/remote_publish.py @@ -136,6 +136,7 @@ def publish_and_log(dbcon, _id, log, close_plugin_name=None, batch_id=None): if close_plugin: # close host app explicitly after error context = pyblish.api.Context() close_plugin().process(context) + return elif processed % log_every == 0: # pyblish returns progress in 0.0 - 2.0 progress = min(round(result["progress"] / 2 * 100), 99)