Browse Source

storage: do not raise error if file is empty

283
ThomasV 9 years ago
parent
commit
f60c949911
  1. 2
      lib/wallet.py

2
lib/wallet.py

@ -75,6 +75,8 @@ class WalletStorage(PrintError):
data = f.read()
except IOError:
return
if not data:
return
try:
self.data = json.loads(data)
except:

Loading…
Cancel
Save