Commits

Matthew Turk committed 3f8742b

Double check the length of "outputs"

  • Participants
  • Parent commits 47f7beb

Comments (0)

Files changed (1)

blohg_converter.py

         lines = ['In[%s]:' % cell.prompt_number, '']
         lines.extend(nb.rst_directive('.. sourcecode:: python', cell.input))
 
+        if len(cell.outputs) == 0: return lines
         for output in nb.coalesce_streams(cell.outputs):
             conv_fn = self.dispatch(output.output_type)
             lines.extend(conv_fn(output))