Skip to content

Commit

Permalink
GH-427 Fix issue in getTransBlockNum where if except was None it woul…
Browse files Browse the repository at this point in the history
…d fail with no_block instead of returning the block number.
  • Loading branch information
oschwaldp-oci committed Jun 30, 2022
1 parent d5d9e20 commit 770a700
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Node.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def getTransBlockNum(trans):
cntxt.add("processed")
cntxt.add("action_traces")
cntxt.index(0)
if cntxt.hasKey("except"):
if not cntxt.isSectionNull("except"):
return "no_block"
return cntxt.add("block_num")

Expand Down

0 comments on commit 770a700

Please sign in to comment.