Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors are raised on certain text inputs. #412

Open
zwanzika-hatzel opened this issue Aug 31, 2024 · 1 comment
Open

Errors are raised on certain text inputs. #412

zwanzika-hatzel opened this issue Aug 31, 2024 · 1 comment

Comments

@zwanzika-hatzel
Copy link

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

@Itachisann
Copy link

same error with word "finished"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants