erreur dans la partie fidélité si le lien étais pas bon
This commit is contained in:
parent
cfb26f6732
commit
2bba6d8235
8
V4.py
8
V4.py
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue