mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-22 08:44:10 +00:00
[commands] Fix lambda converters in non-module contexts.
Not sure why anyone would do this but might as well fix it.
This commit is contained in:
parent
024e57efc2
commit
ac1b9f5628
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user