1
0

fix more bare excepts

This commit is contained in:
Bryan Stitt
2013-11-10 12:30:57 -08:00
parent 24cabcbee9
commit 6cd4ed486a
21 changed files with 67 additions and 67 deletions

View File

@@ -42,7 +42,7 @@ class Plugin(BasePlugin):
if re.match('^(|([\w\-\.]+)@)((\w[\w\-]+\.)+[\w\-]+)$', r):
try:
to_address = self.get_alias(r, True, self.gui.show_message, self.gui.question)
except:
except Exception:
return
if to_address:
s = r + ' <' + to_address + '>'
@@ -103,7 +103,7 @@ class Plugin(BasePlugin):
return ''
try:
lines = urllib.urlopen(url).readlines()
except:
except Exception:
return ''
# line 0
@@ -147,7 +147,7 @@ class Plugin(BasePlugin):
try:
EC_KEY.verify_message(signing_address, signature, url )
self.receipt = (signing_address, signature, url)
except:
except Exception:
show_message('Warning: the URI contains a bad signature.\nThe identity of the recipient cannot be verified.')
address = amount = label = identity = message = ''