From 394ac2988dcc41c683d8df88e89738cc3d07f2ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 17 Apr 2023 18:03:38 +0200 Subject: [PATCH] trivial: give string before substitution to gettext (#76727) --- hobo/applications/models.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/hobo/applications/models.py b/hobo/applications/models.py index 4082e70..2283a13 100644 --- a/hobo/applications/models.py +++ b/hobo/applications/models.py @@ -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']: