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() data = f.read()
except IOError: except IOError:
return return
if not data:
return
try: try:
self.data = json.loads(data) self.data = json.loads(data)
except: except:

Loading…
Cancel
Save