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 :
|
if sql_enabled :
|
||||||
add_to_database(account, points)
|
add_to_database(account, points)
|
||||||
|
|
||||||
|
|
||||||
def Fidelite():
|
def Fidelite():
|
||||||
try:
|
try:
|
||||||
while 1: #close all tabs
|
while 1: #close all tabs
|
||||||
@ -869,8 +870,12 @@ def Fidelite():
|
|||||||
Close(1)
|
Close(1)
|
||||||
except:
|
except:
|
||||||
break
|
break
|
||||||
|
try :
|
||||||
result = get(FidelityLink) #get the url of fidelity page
|
result = get(FidelityLink) #get the url of fidelity page
|
||||||
|
except Exception as e :
|
||||||
|
printf(e)
|
||||||
|
|
||||||
|
if result :
|
||||||
lien = result.content.decode("UTF-8")
|
lien = result.content.decode("UTF-8")
|
||||||
printf(lien)
|
printf(lien)
|
||||||
|
|
||||||
@ -898,7 +903,6 @@ def Fidelite():
|
|||||||
Close(driver.window_handles[1])
|
Close(driver.window_handles[1])
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
printf(e)
|
printf(e)
|
||||||
|
|
||||||
printf("on a reussit la partie fidélité")
|
printf("on a reussit la partie fidélité")
|
||||||
else :
|
else :
|
||||||
printf("lien invalide")
|
printf("lien invalide")
|
||||||
|
Loading…
Reference in New Issue
Block a user