mirror of
https://github.com/FlareSolverr/FlareSolverr.git
synced 2025-07-23 18:40:07 +00:00
fix: utils: Properly raise error when we fail to get chromedriver
This commit is contained in:
parent
cdde82be32
commit
f9f28abdb3
@ -194,6 +194,8 @@ def get_webdriver(proxy: dict = None) -> WebDriver:
|
|||||||
windows_headless=windows_headless, headless=get_config_headless())
|
windows_headless=windows_headless, headless=get_config_headless())
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logging.error("Error starting Chrome: %s" % e)
|
logging.error("Error starting Chrome: %s" % e)
|
||||||
|
# No point in continuing if we cannot retrieve the driver
|
||||||
|
raise e
|
||||||
|
|
||||||
# save the patched driver to avoid re-downloads
|
# save the patched driver to avoid re-downloads
|
||||||
if driver_exe_path is None:
|
if driver_exe_path is None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user