aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 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: