mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-08 10:22:31 -05:00
[Owner] Handle non-callable checks
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user