You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "d:\test\python_test_2-17\translater_test\google_test1.py", line 4, in <module>
print(translator.translate("cat", "fr"))
File "D:\python\virtualenv\OCR\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
Expected behavior:
Steps to reproduce:
Related code:
from googletrans import Translator
translator = Translator()
print(translator.translate("cat", "fr"))
Other information:
I found this issue while processing Bing translation, which returned an HTML file instead of JSON format data Later, I used this library and found the same problem.
The text was updated successfully, but these errors were encountered:
Googletrans version:
I'm submitting a ...
Current behavior:
Expected behavior:
Steps to reproduce:
Related code:
Other information:
I found this issue while processing Bing translation, which returned an HTML file instead of JSON format data Later, I used this library and found the same problem.
The text was updated successfully, but these errors were encountered: