misc: fix raising-format-tuple pylint error (#56288)
This commit is contained in:
parent
3bf3327684
commit
f16a542959
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue