Skip to content

Commit

Permalink
mypy
Browse files Browse the repository at this point in the history
Signed-off-by: vsoch <vsoch@users.noreply.github.com>
  • Loading branch information
vsoch committed Feb 3, 2024
1 parent 528ffdc commit fb4dcd8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions urlchecker/core/urlproc.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,17 +154,13 @@ def get_driver(self, port: Optional[int] = None, timeout: Optional[int] = 5):
from .webdriver import WebDriver

driver = WebDriver(port=port, timeout=timeout)
except:
pass

# Do a sanity check of the driver
try:
# Do a sanity check of the driver
driver.check("https://google.com")
except:
logger.warning(
"Issue with driver, results will be improved if you have it! Please match your version from https://chromedriver.storage.googleapis.com/"
)
return None
return driver

def extract_urls(self):
Expand Down

0 comments on commit fb4dcd8

Please sign in to comment.