mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-03 12:30:07 +00:00
error handling
This commit is contained in:
parent
1a7a270901
commit
85c16d10d7
1 changed files with 5 additions and 5 deletions
|
@ -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']:
|
||||
|
|
Loading…
Add table
Reference in a new issue