diff options
| author | Rapptz <[email protected]> | 2019-04-13 07:15:54 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-04-13 07:15:54 -0400 |
| commit | ac1b9f56282695c71e12c0025708f23d238a179e (patch) | |
| tree | e8f56a65ad815fbef16b6b7d9dd6064675926ba1 | |
| parent | Change slowmode max value in docs (diff) | |
| download | discord.py-ac1b9f56282695c71e12c0025708f23d238a179e.tar.xz discord.py-ac1b9f56282695c71e12c0025708f23d238a179e.zip | |
[commands] Fix lambda converters in non-module contexts.
Not sure why anyone would do this but might as well fix it.
| -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 c5d4f291..8475be85 100644 --- a/discord/ext/commands/core.py +++ b/discord/ext/commands/core.py @@ -325,7 +325,7 @@ class Command(_BaseCommand): except AttributeError: pass else: - if module.startswith('discord.') and not module.endswith('converter'): + if module is not None and (module.startswith('discord.') and not module.endswith('converter')): converter = getattr(converters, converter.__name__ + 'Converter') try: |