misc: fix raising-format-tuple pylint error (#56288)

This commit is contained in:
Lauréline Guérin 2021-08-30 11:42:55 +02:00
parent 3bf3327684
commit f16a542959
No known key found for this signature in database
GPG Key ID: 1FAB9B9B4F93D473
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ def get_templated_url(url, context=None):
if varname == '[':
return '['
if varname not in template_vars:
raise TemplateError('unknown variable %s', varname)
raise TemplateError('unknown variable %s' % varname)
return force_text(template_vars[varname])
return re.sub(r'(\[.+?\])', repl, url)