From c7e110787babfe420051e8b1622adf52e1595851 Mon Sep 17 00:00:00 2001 From: piair Date: Thu, 16 May 2024 17:52:12 +0200 Subject: [PATCH] Debugging auto update --- V6.py | 7 ++++--- modules/Tools/update_chrome.py | 2 ++ version | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/V6.py b/V6.py index 913b2a4..8213de2 100755 --- a/V6.py +++ b/V6.py @@ -235,7 +235,7 @@ def all_cards(): except (exceptions.NoSuchElementException, exceptions.ElementNotInteractableException, IndexError): # les éléments sont présents dans le DOM même quand la popup n'est pas visible apparemment return False - + driver.get("https://rewards.bing.com") wait_until_visible(By.CLASS_NAME, "c-card-content", 10, driver) @@ -395,7 +395,7 @@ def explore_on_bing(activity: str, config: Config): "manger dans le coin" ])) elif "recipe" in activity: - search_bing("recette de "+random.choice([ + search_bing("recette de " + random.choice([ "cake aux olives", "tarte tatin", "Kouign Amann", @@ -405,7 +405,7 @@ def explore_on_bing(activity: str, config: Config): "dessert", "gateau au chocolat", "crêpe sucrée" - ])) # Merci llama pour les idées + ])) # Merci llama pour les idées elif "currency" in activity: currencies = [ "euros", @@ -897,6 +897,7 @@ def default_start(): try: config.WebDriver.set_pc_driver(create_driver()) except: + info("Could not configure driver. Trying to update it.") subprocess.Popen(["python3", "/app/MsRewards-Reborn/modules/Tools/update_chrome.py"]) config.WebDriver.set_pc_driver(create_driver()) config.WebDriver.switch_to_driver("PC") diff --git a/modules/Tools/update_chrome.py b/modules/Tools/update_chrome.py index adbb38a..82f4b23 100644 --- a/modules/Tools/update_chrome.py +++ b/modules/Tools/update_chrome.py @@ -15,6 +15,8 @@ try: except Exception as e: critical("Can't get version number from error") error(e) + info("error message") + info(errorMessage) exit(0) info(f"Needed version : '{versionN}'") diff --git a/version b/version index 5dde2de..790346f 100644 --- a/version +++ b/version @@ -1 +1 @@ -v6.8.55 +v6.8.56