Browse Source

Don't need two try/catch statments if nothing happens when exception is caught

283
Jimbo77 13 years ago
parent
commit
6b86942ccb
  1. 4
      lib/wallet.py

4
lib/wallet.py

@ -684,9 +684,7 @@ class Wallet:
f = open(self.path,"r") f = open(self.path,"r")
data = f.read() data = f.read()
f.close() f.close()
except:
return
try:
d = ast.literal_eval( data ) #parse raw data from reading wallet file d = ast.literal_eval( data ) #parse raw data from reading wallet file
interface.old_to_new(d) interface.old_to_new(d)
self.seed_version = d.get('seed_version') self.seed_version = d.get('seed_version')

Loading…
Cancel
Save