We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14b103b commit a40f5d6Copy full SHA for a40f5d6
1 file changed
html2print/html2print.py
@@ -39,6 +39,14 @@
39
class ChromeDriverManager:
40
def get_chrome_driver(self, path_to_cache_dir: str):
41
chrome_version = self.get_chrome_version()
42
+
43
+ # If Web Driver Manager cannot detect Chrome, it returns None.
44
+ if chrome_version is None:
45
+ raise RuntimeError(
46
+ "html2print: "
47
+ "Web Driver Manager could not detect an existing Chrome installation."
48
+ )
49
50
chrome_major_version = chrome_version.split(".")[0]
51
52
print( # noqa: T201
0 commit comments