From 9cbfecf92c643d3d2e5f40942ccb2d7ce944919d Mon Sep 17 00:00:00 2001 From: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com> Date: Fri, 13 Sep 2024 17:04:25 +0200 Subject: [PATCH] fill title in exception if is missing --- client/ayon_core/tools/publisher/models/publish.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/client/ayon_core/tools/publisher/models/publish.py b/client/ayon_core/tools/publisher/models/publish.py index b0a360fcda..58598602d5 100644 --- a/client/ayon_core/tools/publisher/models/publish.py +++ b/client/ayon_core/tools/publisher/models/publish.py @@ -1282,6 +1282,11 @@ class PublishModel: self._add_validation_error(result) else: + if isinstance(exception, PublishError): + if not exception.title: + exception.title = plugin.label or plugin.__name__ + self._add_validation_error(result) + error_info = PublishErrorInfo.from_exception(exception) self._set_publish_error_info(error_info) self._set_is_crashed(True)