Skip to content

Commit

Permalink
Add some debugging info
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostwords committed Jan 6, 2025
1 parent d0b42a1 commit e4b145d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -998,8 +998,12 @@ def log_snitch_map_changes(self, old_snitches, new_snitches):
def get_current_url(self):
for i in range(3):
try:
return self.driver.current_url
curl = self.driver.current_url
if curl.startswith("chrome-extension://"):
self.logger.error(traceback.format_exc())
return curl
except TimeoutException:
self.logger.info("Timed out getting driver.current_url, retrying...")
time.sleep(2 + i)

return None
Expand Down

0 comments on commit e4b145d

Please sign in to comment.