diff options
| author | ToxicKidz <[email protected]> | 2021-04-05 23:12:27 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-04-05 23:12:27 -0400 |
| commit | 0efb720cec0a5e2965e9191f9c9a79443d4776c1 (patch) | |
| tree | 78e0c013c4c27fcce092241d421073d88bb935c0 | |
| parent | Update changelog for v1.7.1 (diff) | |
| download | discord.py-0efb720cec0a5e2965e9191f9c9a79443d4776c1.tar.xz discord.py-0efb720cec0a5e2965e9191f9c9a79443d4776c1.zip | |
[commands] Fix AttributeError for classes missing convert attribute
| -rw-r--r-- | discord/ext/commands/core.py | 2 |
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 |