Added an AttributeError check in perm_above lockfunc, to catch instances of checking permissions before player logged in.

This commit is contained in:
Griatch 2012-09-30 16:01:21 +02:00
parent cdd24bd6f2
commit 57de91a234
2 changed files with 2 additions and 2 deletions

View file

@ -157,7 +157,7 @@ def perm_above(accessing_obj, accessed_obj, *args, **kwargs):
"""
try:
perm = args[0].lower()
except IndexError:
except (AttributeError, IndexError):
return False
if perm in _PERMISSION_HIERARCHY: