Skip to content

Commit d2b9c42

Browse files
committed
Add the unknown chainid to the error message
1 parent cb4772a commit d2b9c42

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bitsharesapi/bitsharesnoderpc.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ def get_network(self):
3636
for k, v in known_chains.items():
3737
if v["chain_id"] == chain_id:
3838
return v
39-
raise exceptions.UnknownNetworkException("Connecting to unknown network!")
39+
raise exceptions.UnknownNetworkException(
40+
"Connecting to unknown network (chain_id: {})!".format(props["chain_id"])
41+
)
4042

4143
def get_account(self, name, **kwargs):
4244
""" Get full account details from account name or id

0 commit comments

Comments
 (0)