1. sbarthelemy
  2. sphinx

Commits

Georg Brandl  committed 1b41300

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

  • Participants
  • Parent commits 7542598
  • Branches default

Comments (0)

Files changed (1)

File sphinx/ext/graphviz.py

View file
  • Ignore whitespace
 
     if hasattr(self.builder, '_graphviz_warned_dot') or \
        hasattr(self.builder, '_graphviz_warned_ps2pdf'):
-        return None
+        return None, None
 
     ensuredir(path.dirname(outfn))
 
                           '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')