Skip to content

Commit

Permalink
Merge pull request #2 from fasten-project/fix-missing-node-0
Browse files Browse the repository at this point in the history
Fix Bug with Missing First Node
  • Loading branch information
gdrosos authored May 23, 2022
2 parents ed5d109 + 75b27a6 commit 59e8a0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stitcher/stitcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,6 @@ def _err_and_exit(self, msg):
sys.exit(1)

def _assign_id(self, node_str):
if not self.node_to_id.get(node_str, None):
if self.node_to_id.get(node_str, None) is None:
self.node_to_id[node_str] = self.id_cnt
self.id_cnt += 1

0 comments on commit 59e8a0c

Please sign in to comment.