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

@ -1563,6 +1563,7 @@ class CmdLock(ObjManipCommand):
if not obj.access(caller, 'control'):
caller.msg("You are not allowed to do that.")
return
ok = False
try:
ok = obj.locks.add(lockdef)
except LockException, e: