Skip to content

Commit

Permalink
fix(browser): only log when we actually wait.
Browse files Browse the repository at this point in the history
  • Loading branch information
2e0byo committed Feb 17, 2022
1 parent 9646633 commit 48894fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion yadc/browser.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ 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:
self._logger.debug("Waiting as page is not ready yet.")
while self.WAIT_MSG in self.page_source and waited < self.MAX_WAIT:
sleep(1)
waited += 1
Expand Down

0 comments on commit 48894fb

Please sign in to comment.