trivial: give string before substitution to gettext (#76727)
gitea/hobo/pipeline/head Something is wrong with the build of this commit Details

This commit is contained in:
Frédéric Péters 2023-04-17 18:03:38 +02:00
parent 508fcc9999
commit 394ac2988d
1 changed files with 2 additions and 4 deletions

View File

@ -166,10 +166,8 @@ class Application(models.Model):
if not response.ok:
rel.set_error(response.status_code)
raise ScanError(
_(
'Failed to scan "%s" (type %s, slug %s) dependencies (%s)'
% (el.name, el.type, el.slug, response.status_code)
)
_('Failed to scan "%s" (type %s, slug %s) dependencies (%s)')
% (el.name, el.type, el.slug, response.status_code)
)
rel.reset_error()
for dependency in response.json()['data']: