From 8951bfba4a1df109858bd91dfb1231119ed4a2a1 Mon Sep 17 00:00:00 2001 From: Trent McConaghy Date: Thu, 11 May 2023 13:26:00 +0900 Subject: [PATCH] For #546, etc. Tweak networkutil.py, for debuggability We often hit errors wrt not being able to see ganache in barge. Like in #546. Which is this line. However this line does two things: get the network_name, then try to connect. This hurts debuggability. To improve debuggability: split the two actions into two separate lines. --- util/networkutil.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/networkutil.py b/util/networkutil.py index 340405685..e14617d2d 100644 --- a/util/networkutil.py +++ b/util/networkutil.py @@ -115,7 +115,8 @@ def connect(chainID: int): "ignore", message=".*Development network has a block height of*", ) - network.connect(chainIdToNetwork(chainID)) + network_name = chainIdToNetwork(chainID) + network.connect(network_name) @enforce_types