Fixed a bug in the lockhandler error handling. Resolves #564.

This commit is contained in:
Griatch 2014-09-19 21:15:50 +02:00
parent b5507b0fcb
commit 1b44d9b2ed
4 changed files with 11 additions and 10 deletions

View file

@ -216,7 +216,7 @@ class LockHandler(object):
funcname, rest = (part.strip().strip(')') for part in funcstring.split('(', 1))
func = _LOCKFUNCS.get(funcname, None)
if not callable(func):
elist.append(_("Lock: function '%s' is not available.") % funcstring)
elist.append(_("Lock: lock-function '%s' is not available.") % funcstring)
continue
args = list(arg.strip() for arg in rest.split(',') if arg and not '=' in arg)
kwargs = dict([arg.split('=', 1) for arg in rest.split(',') if arg and '=' in arg])