diff --git a/notebook_rdf/notebook_rdf/nb2rdf.py b/notebook_rdf/notebook_rdf/nb2rdf.py index 55de7d0..9d289d2 100644 --- a/notebook_rdf/notebook_rdf/nb2rdf.py +++ b/notebook_rdf/notebook_rdf/nb2rdf.py @@ -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):