Skip to content

Commit

Permalink
Execution count null check.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheeba-Samuel committed Jul 4, 2019
1 parent 2d0cd4f commit 225409e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion notebook_rdf/notebook_rdf/nb2rdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def convert_cell_metadata(self, notebook_name, cell_data):
self.convert_common_cell_metadata(cell, cell_node, cell_index)
if 'cell_type' in cell_node and cell_node.cell_type == 'code':
self.convert_code_cell_metadata(cell, cell_node, cell_index)
if cell_node.execution_count:
if 'execution_count' in cell_node and cell_node.execution_count:
self.order_of_execution[cell_index] = cell_node.execution_count

def add_order_of_execution(self, cell_data):
Expand Down

0 comments on commit 225409e

Please sign in to comment.