parse_URI: amount is in satoshis
[electrum-nvc.git] / lib / simple_config.py
index 1ae6579..4fa9c08 100644 (file)
@@ -3,7 +3,7 @@ import ast
 import threading
 import os
 
-from util import user_dir, print_error
+from util import user_dir, print_error, print_msg
 
 
 
@@ -30,8 +30,7 @@ a SimpleConfig instance then reads the wallet file.
 
         # user conf, writeable
         self.user_config = {}
-        if options.get('portable') == False:
-            self.read_user_config()
+        self.read_user_config()
 
 
 
@@ -155,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