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: