Browse Source

error handling

283
thomasv 13 years ago
parent
commit
85c16d10d7
  1. 10
      client/electrum

10
client/electrum

@ -76,13 +76,13 @@ if __name__ == '__main__':
elif k =='signer': elif k =='signer':
signer = uv signer = uv
if not wallet.is_valid(signer): if not wallet.is_valid(signer):
print signer
print "trying canonical URL"
import urllib import urllib
url = 'http://'+signer+'/bitcoin.id' url = 'http://'+signer+'/bitcoin.id'
print url try:
signer = urllib.urlopen(url).read().strip() signer = urllib.urlopen(url).read().strip()
print repr(signer) except:
# no need to display something, the signature verification will fail anyway
pass
else: print k,v else: print k,v
if k in ['signer','signature']: if k in ['signer','signature']:

Loading…
Cancel
Save