Debugging auto update
This commit is contained in:
parent
1db1de9606
commit
c7e110787b
7
V6.py
7
V6.py
|
@ -235,7 +235,7 @@ def all_cards():
|
||||||
except (exceptions.NoSuchElementException, exceptions.ElementNotInteractableException, IndexError):
|
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
|
# les éléments sont présents dans le DOM même quand la popup n'est pas visible apparemment
|
||||||
return False
|
return False
|
||||||
|
|
||||||
driver.get("https://rewards.bing.com")
|
driver.get("https://rewards.bing.com")
|
||||||
wait_until_visible(By.CLASS_NAME, "c-card-content", 10, driver)
|
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"
|
"manger dans le coin"
|
||||||
]))
|
]))
|
||||||
elif "recipe" in activity:
|
elif "recipe" in activity:
|
||||||
search_bing("recette de "+random.choice([
|
search_bing("recette de " + random.choice([
|
||||||
"cake aux olives",
|
"cake aux olives",
|
||||||
"tarte tatin",
|
"tarte tatin",
|
||||||
"Kouign Amann",
|
"Kouign Amann",
|
||||||
|
@ -405,7 +405,7 @@ def explore_on_bing(activity: str, config: Config):
|
||||||
"dessert",
|
"dessert",
|
||||||
"gateau au chocolat",
|
"gateau au chocolat",
|
||||||
"crêpe sucrée"
|
"crêpe sucrée"
|
||||||
])) # Merci llama pour les idées
|
])) # Merci llama pour les idées
|
||||||
elif "currency" in activity:
|
elif "currency" in activity:
|
||||||
currencies = [
|
currencies = [
|
||||||
"euros",
|
"euros",
|
||||||
|
@ -897,6 +897,7 @@ def default_start():
|
||||||
try:
|
try:
|
||||||
config.WebDriver.set_pc_driver(create_driver())
|
config.WebDriver.set_pc_driver(create_driver())
|
||||||
except:
|
except:
|
||||||
|
info("Could not configure driver. Trying to update it.")
|
||||||
subprocess.Popen(["python3", "/app/MsRewards-Reborn/modules/Tools/update_chrome.py"])
|
subprocess.Popen(["python3", "/app/MsRewards-Reborn/modules/Tools/update_chrome.py"])
|
||||||
config.WebDriver.set_pc_driver(create_driver())
|
config.WebDriver.set_pc_driver(create_driver())
|
||||||
config.WebDriver.switch_to_driver("PC")
|
config.WebDriver.switch_to_driver("PC")
|
||||||
|
|
|
@ -15,6 +15,8 @@ try:
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
critical("Can't get version number from error")
|
critical("Can't get version number from error")
|
||||||
error(e)
|
error(e)
|
||||||
|
info("error message")
|
||||||
|
info(errorMessage)
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
||||||
info(f"Needed version : '{versionN}'")
|
info(f"Needed version : '{versionN}'")
|
||||||
|
|
Loading…
Reference in New Issue