Skip to content

Commit

Permalink
Use Chrome error page detection in Edge too
Browse files Browse the repository at this point in the history
  • Loading branch information
ghostwords committed Jan 7, 2025
1 parent 9412da2 commit b0b65fb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crawler.py
Original file line number Diff line number Diff line change
Expand Up @@ -712,12 +712,11 @@ def raise_on_security_pages(self):
self.raise_on_datadome_pages()

def raise_on_chrome_error_pages(self):
# TODO update for changes in Chrome 85? now Chrome raises in many cases
"""
Chrome doesn't automatically raise WebDriverExceptions on error pages.
This makes Chrome behave more like Firefox.
"""
if self.browser != CHROME:
if self.browser not in (CHROME, EDGE):
return

# self.driver.current_url has the URL we tried, not the error page URL
Expand Down

0 comments on commit b0b65fb

Please sign in to comment.