Skip to content

Commit

Permalink
Exit when window is closed
Browse files Browse the repository at this point in the history
  • Loading branch information
cubicbyte committed Sep 7, 2023
1 parent 0f1185c commit 86b48e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions create_accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,10 @@ def save_account(email: str, username: str, password: str):
proxies = proxy.get_next()
logger.info('Using next proxy: %s', proxy)

except NoSuchWindowException as e:
# Handle this in top level try-except
raise e

except WebDriverException as e:
logger.error(e)
logging.error('An error occurred during account creation. Trying again %s more times...', MAX_RETRIES - retries)
Expand Down

0 comments on commit 86b48e4

Please sign in to comment.