Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
mabraham authored Oct 10, 2024
1 parent a582038 commit 6f20a25
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions urlchecker/core/urlproc.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,12 @@ def get_driver(self, port: Optional[int] = None, timeout: Optional[int] = 5):
try:
from .webdriver import WebDriver

default_driver = WebDriver(port=port, timeout=timeout)
driver = WebDriver(port=port, timeout=timeout)

# Do a sanity check of the default driver
default_driver.check("https://google.com")
driver = default_driver
driver.check("https://google.com")
except:
driver = None
logger.warning(
"Issue with driver, results will be improved if you have it! Please match your version from https://googlechromelabs.github.io/chrome-for-testing"
)
Expand Down

0 comments on commit 6f20a25

Please sign in to comment.