This commit is contained in:
piair 2022-06-02 12:39:30 +02:00
parent d4fcc7f769
commit fe8c1addaa
1 changed files with 7 additions and 7 deletions

14
V4.py
View File

@ -459,7 +459,7 @@ def AllCard(): # fonction qui clique sur les cartes
try: try:
dailyCards() dailyCards()
except: except:
printf("erreur ici") printf("dans les quetes de la semaine")
def weekly_cards(): def weekly_cards():
try: try:
@ -495,7 +495,7 @@ def AllCard(): # fonction qui clique sur les cartes
] # verifie si on a toujours des cartes ] # verifie si on a toujours des cartes
except: except:
break break
for i in range(3): for i in range(2): # don't seem useful for fixing error
try : try :
weekly_cards() weekly_cards()
break break
@ -762,7 +762,7 @@ def TryPlay(nom="inconnu"):
try: try:
printf(f"\033[96m Quiz 4 détécté sur la page {nom} \033[0m") printf(f"\033[96m Quiz 4 détécté sur la page {nom} \033[0m")
PlayQuiz4() PlayQuiz4()
print(f"\033[92m Quiz 4 reussit sur {nom} \033[0m") printf(f"\033[92m Quiz 4 reussit sur {nom} \033[0m")
except Exception as e: except Exception as e:
printf(f"echec de PlayQuiz 4. Aborted {e} \033[0m") printf(f"echec de PlayQuiz 4. Aborted {e} \033[0m")
@ -770,7 +770,7 @@ def TryPlay(nom="inconnu"):
try: try:
printf(f"\033[96m Quiz 2 détécté sur la page {nom}\033[0m") printf(f"\033[96m Quiz 2 détécté sur la page {nom}\033[0m")
PlayQuiz2() PlayQuiz2()
print(f"\033[92m Quiz 2 reussit sur la page {nom}\033[0m") printf(f"\033[92m Quiz 2 reussit sur la page {nom}\033[0m")
except Exception as e: except Exception as e:
printf(f"echec de PlayQuiz 2. Aborted {e}") printf(f"echec de PlayQuiz 2. Aborted {e}")
else: else:
@ -787,10 +787,10 @@ def TryPlay(nom="inconnu"):
# printf(e) normal error here # printf(e) normal error here
if "bt_PollRadio" in driver.page_source: if "bt_PollRadio" in driver.page_source:
try: try:
print("Poll détected", end="\r") printf("Poll détected", end="\r")
RGPD() RGPD()
PlayPoll() PlayPoll()
print("Poll reussit ") printf("Poll reussit ")
except Exception as e: except Exception as e:
printf(f"TryPlay - 1 - Poll aborted {e}") printf(f"TryPlay - 1 - Poll aborted {e}")
@ -815,7 +815,7 @@ def TryPlay(nom="inconnu"):
Fidelite() Fidelite()
else: else:
print(f"rien a faire sur la page {nom}") printf(f"rien a faire sur la page {nom}")
RGPD() RGPD()
CustomSleep(uniform(3, 5)) CustomSleep(uniform(3, 5))