Open zwanzika-hatzel opened 3 weeks ago
Version: 4.0.0rc1
Code:
from googletrans import Translator translator = Translator() translator.translate("child or my", dest="es")
Error: File "C:\Users\user\Desktop\venv\Lib\site-packages\googletrans\client.py", line 222, in translate translated_parts = list(map(lambda part: TranslatedPart(part[0], part[1] if len(part) >= 2 else []), parsed[1][0][0][5])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: 'NoneType' object is not iterable
same error with word "finished"
Version: 4.0.0rc1
Code:
from googletrans import Translator translator = Translator() translator.translate("child or my", dest="es")
Error: File "C:\Users\user\Desktop\venv\Lib\site-packages\googletrans\client.py", line 222, in translate translated_parts = list(map(lambda part: TranslatedPart(part[0], part[1] if len(part) >= 2 else []), parsed[1][0][0][5])) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: 'NoneType' object is not iterable