Skip to content

Commit

Permalink
Update authentication.py
Browse files Browse the repository at this point in the history
  • Loading branch information
4rumprom committed Mar 13, 2024
1 parent 7ec2f29 commit 09dd6da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion schwab_api/authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ async def _async_login(self, username, password, totp_secret=None):

try:
await self.page.frame(name=login_frame).press("[placeholder=\"Password\"]", "Enter")
await self.page.wait_for_url(re.compile(r"app/trade"), wait_until="domcontentloaded") # Making it more robust than specigying an exact url which may change.
await self.page.wait_for_url(re.compile(r"app/trade"), wait_until="domcontentloaded") # Making it more robust than specifying an exact url which may change.
except TimeoutError:
raise Exception("Login was not successful; please check username and password")

Expand Down

0 comments on commit 09dd6da

Please sign in to comment.