workflows: fix bad exception message (#59557)
gitea-wip/wcs/pipeline/head Build started... Details

This commit is contained in:
Lauréline Guérin 2021-12-10 11:08:41 +01:00
parent ba54e9fe1d
commit 74010e083f
No known key found for this signature in database
GPG Key ID: 1FAB9B9B4F93D473
1 changed files with 2 additions and 2 deletions

View File

@ -1238,7 +1238,7 @@ class XmlSerialisable:
if snapshot:
return value
raise WorkflowImportUnknownReferencedError(
_('Unknown referenced role (%s)'), details={_('Unknown roles'): {value}}
_('Unknown referenced role'), details={_('Unknown roles'): {value}}
)
# and if there's no match, create a new role
@ -2502,7 +2502,7 @@ class WorkflowStatusItem(XmlSerialisable):
mail_template = MailTemplate.get_by_slug(value)
if not mail_template:
raise WorkflowImportUnknownReferencedError(
_('Unknown referenced mail template (%s)'), details={_('Unknown mail templates'): {value}}
_('Unknown referenced mail template'), details={_('Unknown mail templates'): {value}}
)
self.mail_template = value
return