提交 929628de authored 作者: lucasb-eyer's avatar lucasb-eyer

Clearer error message for missing pydot/graphviz.

上级 2b83b6ac
...@@ -697,7 +697,7 @@ def pydotprint(fct, outfile=None, ...@@ -697,7 +697,7 @@ def pydotprint(fct, outfile=None,
topo = fct.toposort() topo = fct.toposort()
if not pydot_imported: if not pydot_imported:
raise RuntimeError("Failed to import pydot. You must install pydot" raise RuntimeError("Failed to import pydot. You must install pydot"
" for `pydotprint` to work.") " and graphviz for `pydotprint` to work.")
return return
g = pd.Dot() g = pd.Dot()
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论