mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-02 00:44:52 +01:00
fill title if is not avaialble in exception
This commit is contained in:
parent
10684239e9
commit
71623cd0bd
1 changed files with 2 additions and 2 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue