🌏🌍🌎Translators🌎🌍🌏 is a library that aims to bring free, multiple, enjoyable translations to individuals and students in Python. Translators是一个旨在用Python为个人和学生带来免费、多样、愉快翻译的库。
[x] I'm sure I've read this project's Issues of README.
What happened?
reverso_api function needs to be updated.
Any attempt to translate using Reverso returns the error: Reverso Issue AttributeError: 'NoneType' object has no attribute 'group' .
APP Version
5.8.0
Python Version
3.11
Runtime Environment
Linux Ubuntu
Country/Region
England
Relevant log output
File "/home/kotik/PycharmProjects/bot/venv/lib/python3.11/site-packages/translators/server.py", line 5018, in translate_text
return self.translators_dict[translator](query_text=query_text, from_language=from_language, to_language=to_language, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kotik/PycharmProjects/bot/venv/lib/python3.11/site-packages/translators/server.py", line 104, in _wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/home/kotik/PycharmProjects/bot/venv/lib/python3.11/site-packages/translators/server.py", line 266, in _wrapper
return func(*args, **{**kwargs, **{'query_text': query_text}})
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kotik/PycharmProjects/bot/venv/lib/python3.11/site-packages/translators/server.py", line 2776, in reverso_api
self.language_url = re.compile(self.language_pattern).search(host_html).group()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'group'
Screenshots
No response
Code of Conduct
[X] I agree to follow this project's Code of Conduct
Debug Tips
What happened?
reverso_api function needs to be updated. Any attempt to translate using Reverso returns the error: Reverso Issue AttributeError: 'NoneType' object has no attribute 'group' .
APP Version
5.8.0
Python Version
3.11
Runtime Environment
Linux Ubuntu
Country/Region
England
Relevant log output
Screenshots
No response
Code of Conduct