From 0efb720cec0a5e2965e9191f9c9a79443d4776c1 Mon Sep 17 00:00:00 2001 From: ToxicKidz <78174417+ToxicKidz@users.noreply.github.com> Date: Mon, 5 Apr 2021 23:12:27 -0400 Subject: [PATCH] [commands] Fix AttributeError for classes missing convert attribute --- discord/ext/commands/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py index 57c97daa2..bb630d3bd 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