From f60c949911c78e7c6bfe060d959b54fae9288de8 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Thu, 10 Mar 2016 10:17:03 +0100 Subject: [PATCH] storage: do not raise error if file is empty --- lib/wallet.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/wallet.py b/lib/wallet.py index 8b2cd2e7..bd5901a3 100644 --- a/lib/wallet.py +++ b/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: