idiot
This commit is contained in:
parent
867e46e75d
commit
657a857e13
|
@ -42,7 +42,7 @@ async def translate(client, message):
|
|||
return googletrans.Translator().translate(text, src=src_lang, dest=dest_lang)
|
||||
except AttributeError:
|
||||
time.sleep(0.5)
|
||||
result = await client.loop.run_in_executor(None, translate)
|
||||
result = await client.loop.run_in_executor(None, _translate)
|
||||
if result.text == text:
|
||||
text = 'They\'re the same'
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue