diff --git a/V6.py b/V6.py index 9ebb038..3f12710 100755 --- a/V6.py +++ b/V6.py @@ -612,9 +612,11 @@ def daily_routine(cred: UserCredentials, custom=False): try: if not custom: # custom already is logged in login() + except Banned: log_error("This account is locked.") - return + raise Banned() + except Identity: log_error("This account has an issue.") return @@ -746,12 +748,16 @@ def default_start(): config.WebDriver.pc_driver.quit() config.display.stop() break + except Banned: + warning("this account is banned. Switching to next account") except Exception as e: log_error(f"Error not caught. Skipping this account. " + format_error(e)) critical(f"Error not caught. Skipping this account. {e}") config.WebDriver.pc_driver.quit() - config.UserCredentials.next_account() + finally: + config.UserCredentials.next_account() + config.display.stop() diff --git a/version b/version index ce359d0..be5baf4 100644 --- a/version +++ b/version @@ -1 +1 @@ -v6.8.41 +v6.8.42