mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 11:18:54 -05:00
[Owner] Handle non-callable checks
This commit is contained in:
parent
01a379ad39
commit
4d7d00f41d
@ -457,7 +457,7 @@ class Owner:
|
||||
except KeyError:
|
||||
return KeyError
|
||||
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 comm_obj
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user