This commit is contained in:
blank X 2020-11-03 18:27:02 +07:00
parent 867e46e75d
commit 657a857e13
1 changed files with 1 additions and 1 deletions

View File

@ -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: