storage: do not raise error if file is empty
This commit is contained in:
parent
30eddf4bf0
commit
f60c949911
|
@ -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…
Reference in New Issue