tdo not raise an error if user config file is corrupted - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit 5a89734d6c71dc922c05cb917298c41c29aa2d24
DIR parent 90a558e02cd76e63feced594819d0124381fe4a7
HTML Author: ThomasV <thomasv@gitorious>
Date: Tue, 3 Jun 2014 16:16:43 +0200
do not raise an error if user config file is corrupted
Diffstat:
M lib/simple_config.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
DIR diff --git a/lib/simple_config.py b/lib/simple_config.py
t@@ -154,7 +154,8 @@ a SimpleConfig instance then reads the wallet file.
try:
d = ast.literal_eval( data ) #parse raw data from reading wallet file
except Exception:
- raise IOError("Cannot read config file.")
+ print_msg("Error: Cannot read config file.")
+ return
self.user_config = d