We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ba5702 commit 8b932adCopy full SHA for 8b932ad
src/namecoin.py
@@ -129,12 +129,14 @@ def query (self, string):
129
# Test the connection settings. This routine tries to query a "getinfo"
130
# command, and builds either an error message or a success message with
131
# some info from it.
132
- def test (self):
+ def test(self):
133
try:
134
if self.nmctype == "namecoind":
135
- res = self.callRPC ("getinfo", [])
136
- vers = res["version"]
137
-
+ try:
+ vers = self.callRPC("getinfo", [])["version"]
+ except RPCError:
138
+ vers = self.callRPC("getnetworkinfo", [])["version"]
139
+
140
v3 = vers % 100
141
vers = vers / 100
142
v2 = vers % 100
0 commit comments