Skip to content

Commit

Permalink
For #546, etc. Tweak networkutil.py, for debuggability
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
trentmc authored May 11, 2023
1 parent 27b29bd commit 8951bfb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion util/networkutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8951bfb

Please sign in to comment.