Skip to content

Commit

Permalink
fix trace capture on login fail
Browse files Browse the repository at this point in the history
  • Loading branch information
maxxrk committed Aug 5, 2024
1 parent 5f7ee72 commit 241923d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions vanguard/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,9 @@ def login(self, username, password, last_four):
try:
self.go_url(login_page())
except PlaywrightTimeoutError:
self.close_browser()
raise Exception("Failed to load login page.")
login_state = self.find_login_state()
if login_state == 0:
self.close_browser()
raise Exception("Failed to find login state")
elif login_state == 1:
return False
Expand Down

0 comments on commit 241923d

Please sign in to comment.