mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
#202: dont raise a TypeError when dot cant be found.
This commit is contained in:
parent
d70b036090
commit
ab4a507605
@ -95,7 +95,7 @@ def render_dot(self, code, options, format, prefix='graphviz'):
|
||||
|
||||
if hasattr(self.builder, '_graphviz_warned_dot') or \
|
||||
hasattr(self.builder, '_graphviz_warned_ps2pdf'):
|
||||
return None
|
||||
return None, None
|
||||
|
||||
ensuredir(path.dirname(outfn))
|
||||
|
||||
@ -114,7 +114,7 @@ def render_dot(self, code, options, format, prefix='graphviz'):
|
||||
'output), check the graphviz_dot setting' %
|
||||
self.builder.config.graphviz_dot)
|
||||
self.builder._graphviz_warned_dot = True
|
||||
return None
|
||||
return None, None
|
||||
# graphviz expects UTF-8 by default
|
||||
if isinstance(code, unicode):
|
||||
code = code.encode('utf-8')
|
||||
|
Loading…
Reference in New Issue
Block a user