Browse Source

RAII open of wallet file.

283
Amir Taaki 12 years ago
parent
commit
26c0b786e9
  1. 5
      lib/wallet.py

5
lib/wallet.py

@ -691,10 +691,9 @@ class Wallet:
self.file_exists = False
try:
f = open(self.path,"r")
with open(self.path, "r") as f:
data = f.read()
f.close()
except:
except IOError:
return
try:
d = ast.literal_eval( data ) #parse raw data from reading wallet file

Loading…
Cancel
Save