2 Commits

Author SHA1 Message Date
49b691d736 not tested enough apparently 2024-02-28 18:22:15 +01:00
9549a6dea3 not tested enough apparently 2024-02-28 18:12:32 +01:00
4 changed files with 6 additions and 4 deletions

4
V6.py
View File

@ -165,6 +165,8 @@ def do_poll():
try:
answer_elem.click()
except exceptions.ElementNotInteractableException:
warning("element not clickable. Waiting a bit and retrying.")
custom_sleep(uniform(2, 2.5))
driver.execute_script("arguments[0].click();", answer_elem)
custom_sleep(uniform(2, 2.5))
except Exception as err:
@ -680,7 +682,7 @@ def json_start(json_entry, cred: UserCredentials):
login()
try:
if str(account_id) in json_entry["tout"]:
daily_routine(cred)
daily_routine(cred, True)
except KeyError:
pass
else:

View File

@ -30,7 +30,7 @@ class DiscordLogger:
)
file = File("screenshot.png")
embed.set_image(url="attachment://screenshot.png")
embed.set_footer(text=self.config.UserCredentials.creds.get_mail())
embed.set_footer(text=self.config.UserCredentials.get_mail())
self.config.discord.wh.send(embed=embed, username="error", file=file, avatar_url=self.config.discord.avatar_url)
self.config.discord.wh.send(username="error", file=File("page.html"), avatar_url=self.config.discord.avatar_url)

View File

@ -30,7 +30,7 @@ class ColoredFormatter(logging.Formatter):
# Set up the root logger
root_logger = logging.getLogger(__name__)
root_logger.setLevel(logging.DEBUG)
root_logger.setLevel(logging.INFO)
# Create a console handler and set the formatter
ch = logging.StreamHandler()

View File

@ -1 +1 @@
v6.8.38
v6.8.40