mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
do not format empty detail
This commit is contained in:
parent
fe3af18101
commit
5683dda65d
1 changed files with 3 additions and 1 deletions
|
|
@ -35,7 +35,9 @@ class PublishXmlValidationError(PublishValidationError):
|
|||
result = load_help_content_from_plugin(plugin)
|
||||
content_obj = result["errors"][key]
|
||||
description = content_obj.description.format(**formatting_data)
|
||||
detail = content_obj.detail.format(**formatting_data)
|
||||
detail = content_obj.detail
|
||||
if detail:
|
||||
detail = detail.format(**formatting_data)
|
||||
super(PublishXmlValidationError, self).__init__(
|
||||
message, content_obj.title, description, detail
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue