erreur dans la partie fidélité si le lien étais pas bon

This commit is contained in:
piair 2022-05-27 14:07:52 +02:00
parent cfb26f6732
commit 2bba6d8235
1 changed files with 34 additions and 30 deletions

8
V4.py
View File

@ -862,6 +862,7 @@ def LogPoint(account="unknown"): # log des points sur discord
if sql_enabled :
add_to_database(account, points)
def Fidelite():
try:
while 1: #close all tabs
@ -869,8 +870,12 @@ def Fidelite():
Close(1)
except:
break
try :
result = get(FidelityLink) #get the url of fidelity page
except Exception as e :
printf(e)
if result :
lien = result.content.decode("UTF-8")
printf(lien)
@ -898,7 +903,6 @@ def Fidelite():
Close(driver.window_handles[1])
except Exception as e:
printf(e)
printf("on a reussit la partie fidélité")
else :
printf("lien invalide")