Skip to content

Commit 8344c09

Browse files
authored
Update ChromeNotFoundError (#303)
* Update ChromeNotFoundError text * Update kaleido.py * Make small updates to ChromeNotFoundError
1 parent 245c2eb commit 8344c09

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/py/kaleido/kaleido.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,10 @@ def __init__(self, *args, **kwargs): # noqa: D417 no args/kwargs in description
120120
super().__init__(*args, **kwargs)
121121
except ChromeNotFoundError:
122122
raise ChromeNotFoundError(
123-
"Versions 1.0.0 and higher of Kaleido do not include chrome by"
124-
"default. Earlier versions, which can be pinned, did but the strategy "
125-
"is no longer tenable. Kaleido's supplies a kaleido_get_chrome CLI "
126-
"command as well as a `get_chrome()` and `get_chrome_sync()` "
127-
"functions in kaleido.",
123+
"Kaleido v1 and later requires Chrome to be installed. "
124+
"To install Chrome, use the CLI command `kaleido_get_chrome`, "
125+
"or from Python, use either `kaleido.get_chrome()` "
126+
"or `kaleido.get_chrome_sync()`.",
128127
) from ChromeNotFoundError
129128

130129
if page and isinstance(page, str) and Path(page).is_file():

0 commit comments

Comments
 (0)