diff options
| author | Rapptz <[email protected]> | 2016-06-23 18:36:41 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-06-23 18:36:41 -0400 |
| commit | 629c24339be6aac571e0f67e6b63d05bbc9dfdec (patch) | |
| tree | 7e1c3ba10b3cc38273cf7af467e1792d320755a8 | |
| parent | Fix bug with edit_profile for user accounts (diff) | |
| download | discord.py-629c24339be6aac571e0f67e6b63d05bbc9dfdec.tar.xz discord.py-629c24339be6aac571e0f67e6b63d05bbc9dfdec.zip | |
[commands] Fix bug that made functions stop working as converters.
| -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 18a2d9d4..62ae0408 100644 --- a/discord/ext/commands/core.py +++ b/discord/ext/commands/core.py @@ -174,7 +174,7 @@ class Command: if converter.__module__.startswith('discord.'): converter = getattr(converters, converter.__name__ + 'Converter') - if issubclass(converter, converters.Converter): + if inspect.isclass(converter) and issubclass(converter, converters.Converter): instance = converter(ctx, argument) if asyncio.iscoroutinefunction(instance.convert): return (yield from instance.convert()) |