fixing fstring

This commit is contained in:
trhr 2020-04-16 05:53:51 -05:00
parent e3426d2124
commit 0f8c0ad9bf
9 changed files with 17 additions and 19 deletions

View file

@ -246,7 +246,7 @@ class LockHandler(object):
evalstring = " ".join(_RE_OK.findall(evalstring))
eval(evalstring % tuple(True for func in funclist), {}, {})
except Exception:
elist.append(_("Lock: definition '%s' has syntax errors.") % raw_lockstring)
elist.append(_("Lock: definition '{lock_string}' has syntax errors.".format(lock_string=raw_lockstring)))
continue
if access_type in locks:
duplicates += 1