Browse Source

Better error message in case of invalid joinmarket.cfg format

master
Kristaps Kaupe 4 years ago
parent
commit
53c7c7d9df
No known key found for this signature in database
GPG Key ID: 33E472FE870C7E5D
  1. 10
      jmclient/jmclient/configure.py

10
jmclient/jmclient/configure.py

@ -591,8 +591,14 @@ def load_program_config(config_path="", bs=None, plugin_services=[]):
global_singleton.datadir, global_singleton.config_location)
remove_unwanted_default_settings(global_singleton.config)
loadedFiles = global_singleton.config.read([global_singleton.config_location
])
try:
loadedFiles = global_singleton.config.read(
[global_singleton.config_location])
except UnicodeDecodeError:
jmprint("Error loading `joinmarket.cfg`, invalid file format.",
"info")
sys.exit(EXIT_FAILURE)
#Hack required for electrum; must be able to enforce a different
#blockchain interface even in default/new load.
if bs:

Loading…
Cancel
Save