chore: raise exception when chrome cannot be found
This commit is contained in:
parent
bf7dcf8b57
commit
c74631257b
|
@ -842,3 +842,5 @@ def find_chrome_executable():
|
|||
for candidate in candidates:
|
||||
if os.path.exists(candidate) and os.access(candidate, os.X_OK):
|
||||
return os.path.normpath(candidate)
|
||||
|
||||
raise RuntimeError("Could not automatically find the chrome executable. Please install chrome or chromium first, or specify browser_executable_path the options.")
|
||||
|
|
Loading…
Reference in New Issue