[commands] Fix AttributeError for classes missing convert attribute

This commit is contained in:
ToxicKidz authored and GitHub committed 2021-04-05 23:12:27 -04:00
1 parent 8da6b47a36
commit 0efb720cec
1 file changed
+1 -1
+1 -1
View File
@@ -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