From 85c16d10d7b9ba5405e47ff0c1abd2a390547946 Mon Sep 17 00:00:00 2001 From: thomasv Date: Thu, 2 Feb 2012 17:42:00 +0100 Subject: [PATCH] error handling --- client/electrum | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/client/electrum b/client/electrum index 19622532b..781dbbb2e 100755 --- a/client/electrum +++ b/client/electrum @@ -76,13 +76,13 @@ if __name__ == '__main__': elif k =='signer': signer = uv if not wallet.is_valid(signer): - print signer - print "trying canonical URL" import urllib url = 'http://'+signer+'/bitcoin.id' - print url - signer = urllib.urlopen(url).read().strip() - print repr(signer) + try: + signer = urllib.urlopen(url).read().strip() + except: + # no need to display something, the signature verification will fail anyway + pass else: print k,v if k in ['signer','signature']: