[commands] Fix logic in Cog.has_error_handler()

This commit is contained in:
Rapptz 2021-04-05 21:08:54 -04:00
parent 682b73abb6
commit 6d74514729

View File

@ -299,7 +299,7 @@ class Cog(metaclass=CogMeta):
.. versionadded:: 1.7 .. versionadded:: 1.7
""" """
return hasattr(self.cog_command_error.__func__, '__cog_special_method__') return not hasattr(self.cog_command_error.__func__, '__cog_special_method__')
@_cog_special_method @_cog_special_method
def cog_unload(self): def cog_unload(self):