mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-31 01:11:35 +00:00
storage: do not raise error if file is empty
This commit is contained in:
parent
30eddf4bf0
commit
f60c949911
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue