-
Notifications
You must be signed in to change notification settings - Fork 729
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Uncaught error on a simple translation (ver 1.1.1 via pip) #2
Comments
As detected language, the language code of estonian is et, not ee. Anyway, I updated the code to prevent invalid language codes being passed to the function, it would be appreciated when someone is trying to do so. (and it will be applied for next release!) |
Nice, thanks for the quick fix! |
Ye, I'll consider to add a converter that substitutes for it. Thank you for your information. 👍 |
$ translate -s ee ajuvaba
Traceback (most recent call last):
File "/usr/local/bin/translate", line 38, in
main()
File "/usr/local/bin/translate", line 27, in main
result = translator.translate(args.text, dest=args.dest, src=args.src)
File "/usr/local/lib/python3.4/dist-packages/googletrans/translator.py", line 92, in translate
translated = data[0][0][0]
TypeError: 'NoneType' object is not subscriptable
The text was updated successfully, but these errors were encountered: