alexyvassili / autopublisher

Script for automatic publish news and updates from email to drupal site
MIT License
0 stars 0 forks source link

Ошибка assert "Лотошино" in driver.title #42

Open alexyvassili opened 7 months ago

alexyvassili commented 7 months ago

Ошибка assert "Лотошино" in driver.title:

Traceback (most recent call last):
  File "/home/alexey/.python3/venvs/autopublisher/lib/python3.11/site-packages/telegram/ext/dispatcher.py", line 340, in process_update
    handler.handle_update(update, self, check, context)
  File "/home/alexey/.python3/venvs/autopublisher/lib/python3.11/site-packages/telegram/ext/conversationhandler.py", line 465, in handle_update
    new_state = handler.handle_update(update, dispatcher, check_result, context)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/alexey/.python3/venvs/autopublisher/lib/python3.11/site-packages/telegram/ext/handler.py", line 119, in handle_update
    return self.callback(update, context)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/alexey/.python3/venvs/autopublisher/lib/python3.11/site-packages/autopublisher/bot/mailbot.py", line 125, in publish_news
    url = publish.news(current_mail.title, html, current_mail.images)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/alexey/.python3/venvs/autopublisher/lib/python3.11/site-packages/autopublisher/publish/publish.py", line 113, in news
    driver: WebDriver = login_to_site()
                        ^^^^^^^^^^^^^^^
  File "/home/alexey/.python3/venvs/autopublisher/lib/python3.11/site-packages/autopublisher/publish/publish.py", line 57, in login_to_site
    assert "Лотошино" in driver.title
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError