Skip to content

Commit 02d6878

Browse files
committed
assign ethereum_nodes with None first
1 parent 2cd08ef commit 02d6878

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

raiden/tests/utils/smoketest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,8 @@ def setup_smoketest(
611611
stdout_manager = contextlib.redirect_stdout(stdout) # type: ignore
612612

613613
with stdout_manager, testchain_manager as testchain, matrix_manager as server_urls:
614+
615+
ethereum_nodes = None
614616
try:
615617
raiden_setup = setup_raiden(
616618
matrix_server=server_urls[0][0],
@@ -627,7 +629,7 @@ def setup_smoketest(
627629

628630
yield raiden_setup
629631
finally:
630-
if ethereum_nodes:
632+
if ethereum_nodes is not None:
631633
for node_executor in ethereum_nodes:
632634
node = node_executor.process
633635
if node is not None:

0 commit comments

Comments
 (0)