Skip to content

Commit 60904d5

Browse files
author
Yi-Ting Lee
committed
try except raise
1 parent 79b193a commit 60904d5

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/sagemaker/lineage/query.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,19 +215,22 @@ def _import_visual_modules(self):
215215
import dash_cytoscape as cyto
216216
except ImportError as e:
217217
print(e)
218-
print("try pip install dash-cytoscape")
218+
print("Try: pip install dash-cytoscape")
219+
raise
219220

220221
try:
221222
from jupyter_dash import JupyterDash
222223
except ImportError as e:
223224
print(e)
224-
print("try pip install jupyter-dash")
225+
print("Try: pip install jupyter-dash")
226+
raise
225227

226228
try:
227229
from dash import html
228230
except ImportError as e:
229231
print(e)
230-
print("try pip install dash")
232+
print("Try: pip install dash")
233+
raise
231234

232235
return cyto, JupyterDash, html
233236

0 commit comments

Comments
 (0)