Fix type error
authorCryptoManiac <balthazar@yandex.ru>
Tue, 29 Mar 2016 20:17:26 +0000 (23:17 +0300)
committerCryptoManiac <balthazar@yandex.ru>
Tue, 29 Mar 2016 20:17:26 +0000 (23:17 +0300)
contrib/seeds/getseeds/getseeds.py

index a0874f0..998f982 100755 (executable)
@@ -81,7 +81,7 @@ if b'rpcport' in contents.keys():
 if b'rpclisten' in contents.keys():
     rpclisten = contents[b'rpclisten'].decode()
 
-access = AuthServiceProxy("http://"+rpcuser+":"+rpcpassword+"@"+rpclisten+":"+rpcport+"/")
+access = AuthServiceProxy('http://%s:%s@%s:%d/' % (rpcuser, rpcpassword, rpclisten, int(rpcport)))
 
 for node in json.loads(data.decode()):
     print ('Adding', node)