Skip to content

Commit

Permalink
fix(browser): typo if -> while
Browse files Browse the repository at this point in the history
  • Loading branch information
2e0byo committed Jan 31, 2022
1 parent 482233e commit ba9938a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yadc/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def bypass(self):
def wait(self):
waited = 0
self._logger.debug("Waiting as page is not ready yet.")
if self.WAIT_MSG in self.page_source and waited < self.MAX_WAIT:
while self.WAIT_MSG in self.page_source and waited < self.MAX_WAIT:
sleep(1)
waited += 1
if self.WAIT_MSG in self.page_source:
Expand Down

0 comments on commit ba9938a

Please sign in to comment.