do not raise an error if user config file is corrupted
authorThomasV <thomasv@gitorious>
Tue, 3 Jun 2014 14:16:43 +0000 (16:16 +0200)
committerThomasV <thomasv@gitorious>
Tue, 3 Jun 2014 14:16:43 +0000 (16:16 +0200)
lib/simple_config.py

index 127b480..64807c7 100644 (file)
@@ -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