diff --git a/V6.py b/V6.py index e018504..f552bc8 100755 --- a/V6.py +++ b/V6.py @@ -781,53 +781,53 @@ def json_start(json_entry, cred: UserCredentials): config.WebDriver.set_pc_driver(create_driver()) config.WebDriver.switch_to_driver("PC") driver = config.WebDriver.driver - try: - if "unban" in json_entry and str(account_id) in json_entry["unban"]: - login() - info("\nGO TO example.com TO PROCEED or wait 1200 secs.") - for _ in range(1200): - sleep(1) - if driver.current_url == "https://example.com/": - info("proceeding") - break - else: - login() - except KeyError: + if "unban" in json_entry and str(account_id) in json_entry["unban"]: + login() + info("\nGO TO example.com TO PROCEED or wait 1200 secs.") + for _ in range(1200): + sleep(1) + if driver.current_url == "https://example.com/": + info("proceeding") + break + else: login() - try: - if str(account_id) in json_entry["tout"]: - daily_routine(cred, True) - except KeyError: - pass - else: try: - if str(account_id) in json_entry["daily"]: + if str(account_id) in json_entry["tout"]: + daily_routine(cred, True) + + else: try: - all_cards() - except Exception as e: - log_error(e) - except KeyError: - pass - try: - if str(account_id) in json_entry["pc"]: + if str(account_id) in json_entry["daily"]: + try: + all_cards() + except Exception as e: + log_error(e) + except KeyError: + pass try: - bing_pc_search() - except Exception as e: - log_error(e) - except KeyError: - pass - try: - if str(account_id) in json_entry["mobile"]: + if str(account_id) in json_entry["pc"]: + try: + bing_pc_search() + except Exception as e: + log_error(e) + except KeyError: + pass try: - bing_mobile_search(cred) - except Exception as e: - log_error(e) + if str(account_id) in json_entry["mobile"]: + try: + bing_mobile_search(cred) + except Exception as e: + log_error(e) + except KeyError: + pass + except KeyError: pass try: log_points() except Exception as e: error(f"CustomStart {e}") + driver.close() cred.next_account() account_id += 1 diff --git a/version b/version index dadd3ec..61b51cd 100644 --- a/version +++ b/version @@ -1 +1 @@ -v6.8.51 +v6.8.52