From 5a89734d6c71dc922c05cb917298c41c29aa2d24 Mon Sep 17 00:00:00 2001 From: ThomasV Date: Tue, 3 Jun 2014 16:16:43 +0200 Subject: [PATCH] do not raise an error if user config file is corrupted --- lib/simple_config.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/simple_config.py b/lib/simple_config.py index 127b480b..64807c78 100644 --- a/lib/simple_config.py +++ b/lib/simple_config.py @@ -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