aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorToxicKidz <[email protected]>2021-04-05 23:12:27 -0400
committerGitHub <[email protected]>2021-04-05 23:12:27 -0400
commit0efb720cec0a5e2965e9191f9c9a79443d4776c1 (patch)
tree78e0c013c4c27fcce092241d421073d88bb935c0
parentUpdate changelog for v1.7.1 (diff)
downloaddiscord.py-0efb720cec0a5e2965e9191f9c9a79443d4776c1.tar.xz
discord.py-0efb720cec0a5e2965e9191f9c9a79443d4776c1.zip
[commands] Fix AttributeError for classes missing convert attribute
-rw-r--r--discord/ext/commands/core.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py
index 57c97daa..bb630d3b 100644
--- a/discord/ext/commands/core.py
+++ b/discord/ext/commands/core.py
@@ -444,7 +444,7 @@ class Command(_BaseCommand):
try:
if inspect.isclass(converter):
- if inspect.ismethod(converter.convert):
+ if inspect.ismethod(getattr(converter, 'convert', None)):
if converter.convert.__self__ is converter:
# class method
func = converter.convert