From 4a434533a7ac0ad3ed88f084b5f3d159995d3362 Mon Sep 17 00:00:00 2001 From: piair338 Date: Tue, 25 Oct 2022 17:27:54 +0000 Subject: [PATCH] ptet que c'est utile je sais pas --- modules/tools.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/tools.py b/modules/tools.py index bcb27b8..60a1779 100644 --- a/modules/tools.py +++ b/modules/tools.py @@ -9,8 +9,8 @@ from discord import ( # Importing discord.Webhook and discord.RequestsWebhookAd from modules.config import * -_mail = "undefined" - +mail = "undefined" +_mail = mail """ send_keys_wait([selenium element:element, str:keys]) send the different keys to the field element, with a random time between each press to simulate human action. keys can be an string, but alos selenium keys @@ -24,13 +24,13 @@ def send_keys_wait(element, keys): sleep(uniform(0.1, 0.3)) -def LogError(message, driver, _mail, log=FULL_LOG): +def LogError(message, driver, mail, log=FULL_LOG): print(f"\n\n\033[93m Erreur : {str(message)} \033[0m\n\n") if DISCORD_ENABLED_ERROR: with open("page.html", "w") as f: - f.write(gdriver.page_source) + f.write(driver.page_source) - gdriver.save_screenshot("screenshot.png") + driver.save_screenshot("screenshot.png") if not log: embed = discord.Embed( title="An Error has occured",