mirror of
https://github.com/evennia/evennia.git
synced 2026-04-04 15:07:16 +02:00
Fixed a bug in the lockhandler error handling. Resolves #564.
This commit is contained in:
parent
b5507b0fcb
commit
1b44d9b2ed
4 changed files with 11 additions and 10 deletions
|
|
@ -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])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue