We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 41f92bf commit 7fb2e8bCopy full SHA for 7fb2e8b
tf_keras/utils/vis_utils.py
@@ -56,7 +56,10 @@ def check_graphviz():
56
# to check the pydot/graphviz installation.
57
pydot.Dot.create(pydot.Dot())
58
return True
59
- except (OSError, pydot.InvocationException):
+ except (OSError, FileNotFoundError):
60
+ return False
61
+ # pydot_ng has InvocationException but pydot doesn't
62
+ except pydot.InvocationException:
63
return False
64
65
0 commit comments