Skip to content

Commit 702efd5

Browse files
emilyklcamdecoster
andauthored
remove try/catch (suggestion from @camdecoster)
Co-authored-by: Cameron DeCoster <cameron.decoster@gmail.com>
1 parent 609346a commit 702efd5

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

plotly/io/_kaleido.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,7 @@
1111
from plotly.io._defaults import defaults
1212
from _plotly_utils.optional_imports import get_module
1313

14-
try:
15-
kaleido = get_module("kaleido", should_load=True)
16-
except ImportError:
17-
kaleido = None
14+
kaleido = get_module("kaleido", should_load=True)
1815

1916
PLOTLY_GET_CHROME_ERROR_MSG = """
2017

0 commit comments

Comments
 (0)