trying to fix web start

This commit is contained in:
piair 2024-04-26 16:06:33 +02:00
parent 3123a1dbd0
commit 3c74aa025e
2 changed files with 37 additions and 37 deletions

10
V6.py
View File

@ -781,7 +781,6 @@ def json_start(json_entry, cred: UserCredentials):
config.WebDriver.set_pc_driver(create_driver()) config.WebDriver.set_pc_driver(create_driver())
config.WebDriver.switch_to_driver("PC") config.WebDriver.switch_to_driver("PC")
driver = config.WebDriver.driver driver = config.WebDriver.driver
try:
if "unban" in json_entry and str(account_id) in json_entry["unban"]: if "unban" in json_entry and str(account_id) in json_entry["unban"]:
login() login()
info("\nGO TO example.com TO PROCEED or wait 1200 secs.") info("\nGO TO example.com TO PROCEED or wait 1200 secs.")
@ -792,13 +791,10 @@ def json_start(json_entry, cred: UserCredentials):
break break
else: else:
login() login()
except KeyError:
login()
try: try:
if str(account_id) in json_entry["tout"]: if str(account_id) in json_entry["tout"]:
daily_routine(cred, True) daily_routine(cred, True)
except KeyError:
pass
else: else:
try: try:
if str(account_id) in json_entry["daily"]: if str(account_id) in json_entry["daily"]:
@ -824,10 +820,14 @@ def json_start(json_entry, cred: UserCredentials):
log_error(e) log_error(e)
except KeyError: except KeyError:
pass pass
except KeyError:
pass
try: try:
log_points() log_points()
except Exception as e: except Exception as e:
error(f"CustomStart {e}") error(f"CustomStart {e}")
driver.close() driver.close()
cred.next_account() cred.next_account()
account_id += 1 account_id += 1

View File

@ -1 +1 @@
v6.8.51 v6.8.52