From d4fcc7f76922699813dbe465a3e53d6cf6bf529d Mon Sep 17 00:00:00 2001 From: piair Date: Thu, 2 Jun 2022 12:29:17 +0200 Subject: [PATCH] re disabled mobile search for proxy --- V4.py | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/V4.py b/V4.py index 0a7009e..2d007ec 100755 --- a/V4.py +++ b/V4.py @@ -232,7 +232,7 @@ def ListTabs(Mdriver=None): tabs.append(ldriver.current_url) return tabs -#il faut fix le fait qu'il essaye d'envoyer un truc sans url, listtab[0] = about:blank + def LogError(message, log=FullLog, Mobdriver=None): if Mobdriver: gdriver = Mobdriver @@ -294,7 +294,6 @@ def RGPD(): pass - """ PlayQuiz2([int : override]) make the quizz with 2 choice each time. They usually have 10 questions. override is the number of question, by default, it's 10. Can be usefull in some case, where the programm crashes before finishing the quizz @@ -916,7 +915,6 @@ def Fidelite(): def DailyRoutine(): - MainWindows = login() try: AllCard() @@ -934,14 +932,14 @@ def DailyRoutine(): try: Fidelite() - except: - pass - - - try: - BingMobileSearch() except Exception as e: - LogError(f"DalyRoutine - BingMobileSearch - {e}") + LogError(f"DailyRoutine - Fidelité - \n {e}") + + if proxy_enabled : + try: + BingMobileSearch() + except Exception as e: + LogError(f"DalyRoutine - BingMobileSearch - {e}") CustomSleep(uniform(3, 20)) try: