From 770a70025751dc0dac3607860553bb6fd1b503c0 Mon Sep 17 00:00:00 2001 From: Peter Oschwald Date: Thu, 30 Jun 2022 18:00:05 -0500 Subject: [PATCH] GH-427 Fix issue in getTransBlockNum where if except was None it would fail with no_block instead of returning the block number. --- tests/Node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Node.py b/tests/Node.py index 06d2afa939..a2b95f4acc 100644 --- a/tests/Node.py +++ b/tests/Node.py @@ -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")