#202: dont raise a TypeError when dot cant be found.

This commit is contained in:
Georg Brandl 2009-07-09 20:26:04 +02:00
parent d70b036090
commit ab4a507605

View File

@ -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')