1. nakamura
  2. blockdiag

Commits

nakamura  committed ff751b3

Not to crash entire reST parsing, raise self.warning instead

  • Participants
  • Parent commits c462cdc
  • Branches default

Comments (0)

Files changed (1)

File src/blockdiag/utils/rst/directives.py

View file
  • Ignore whitespace
         if not isinstance(node, self.node_class):
             return results
 
-        diagram = self.node2diagram(node)
+        try:
+            diagram = self.node2diagram(node)
+        except Exception, e:
+            raise self.warning(e.message)
 
         if 'desctable' in node['options']:
             del node['options']['desctable']