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
вне зависимости от заданного при инициализации типа api возникает ошибка:
Traceback (most recent call last):
File "/home/kruase/.local/share/virtualenvs/python-playground-7wYzP8hx/lib/python3.12/site-packages/yandexfreetranslate/__init__.py", line 116, in _parse_sid
return re.search(r'''SID[\s]?[:][\s]?['"]([^'"]+)['"]''', page).group(1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'group'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/kruase/projects/python-playground/yandex_translate_api.py", line 5, in <module>
print(translator.translate("en", "ru", "Red Square 3, Tverskoy District, Moscow, Russia, 109012"))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kruase/.local/share/virtualenvs/python-playground-7wYzP8hx/lib/python3.12/site-packages/yandexfreetranslate/__init__.py", line 157, in translate
if self.key == "": self.key = self._get_key()
^^^^^^^^^^^^^^^
File "/home/kruase/.local/share/virtualenvs/python-playground-7wYzP8hx/lib/python3.12/site-packages/yandexfreetranslate/__init__.py", line 134, in _get_key
sid = self._parse_sid()
^^^^^^^^^^^^^^^^^
File "/home/kruase/.local/share/virtualenvs/python-playground-7wYzP8hx/lib/python3.12/site-packages/yandexfreetranslate/__init__.py", line 118, in _parse_sid
raise YandexFreeTranslateError("blocked or not found")
yandexfreetranslate.YandexFreeTranslateError: blocked or not found
The text was updated successfully, but these errors were encountered:
вне зависимости от заданного при инициализации типа api возникает ошибка:
The text was updated successfully, but these errors were encountered: