OP-2505 - added return

This commit is contained in:
Petr Kalis 2022-02-03 14:54:19 +01:00
parent 4103654c4c
commit 13519cfcda

View file

@ -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)