[Owner] Handle non-callable checks

This commit is contained in:
Twentysix 2016-10-23 17:52:28 +02:00
parent 01a379ad39
commit 4d7d00f41d

View File

@ -457,7 +457,7 @@ class Owner:
except KeyError: except KeyError:
return KeyError return KeyError
for check in comm_obj.checks: for check in comm_obj.checks:
if check.__name__ == "is_owner_check": if hasattr(check, "__name__") and check.__name__ == "is_owner_check":
return False return False
return comm_obj return comm_obj