Open goshut opened 10 months ago
Same thing for word "users" into Spanish.
from googletrans import Translator
translator = Translator()
print(translator.translate("users", "es"))
Traceback:
Traceback (most recent call last):
File "/home/artic/.local/share/JetBrains/Toolbox/apps/pycharm-professional/plugins/python/helpers/pydev/pydevconsole.py", line 364, in runcode
coro = func()
File "<input>", line 4, in <module>
File "/home/artic/PycharmProjects/legaltech_backend/.venv/lib/python3.10/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
Apparently the word "Obvious" for spanish well.
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.