From 71623cd0bdbc2bf5aaa378b455d042dc95d6d27a Mon Sep 17 00:00:00 2001 From: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com> Date: Mon, 2 Sep 2024 14:32:52 +0200 Subject: [PATCH] fill title if is not avaialble in exception --- client/ayon_core/tools/publisher/models/publish.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/ayon_core/tools/publisher/models/publish.py b/client/ayon_core/tools/publisher/models/publish.py index b01cfb30f9..7fc4ca8bb4 100644 --- a/client/ayon_core/tools/publisher/models/publish.py +++ b/client/ayon_core/tools/publisher/models/publish.py @@ -51,13 +51,13 @@ class PublishErrorInfo: @classmethod def from_exception(cls, exc) -> "PublishErrorInfo": + title = "This is not your fault" if isinstance(exc, PublishArtistError): return cls( exc.description or exc.message, - title=exc.title, + title=exc.title or title, detail=exc.detail, ) - title = "This is not your fault" if isinstance(exc, KnownPublishError): msg = str(exc) else: