diff --git a/electrum b/electrum index 24bb2b29..222ea3b3 100755 --- a/electrum +++ b/electrum @@ -288,7 +288,7 @@ def run_cmdline(config): if cmd.requires_network and not config.get('offline'): s = get_daemon(config, False) if not s: - print_msg("Network daemon is not running. Try 'electrum daemon start'") + print_msg("Network daemon is not running. Try 'electrum daemon start'\nIf you want to run this command offline, use the -o flag.") sys.exit(1) network = NetworkProxy(s, config) network.start() diff --git a/lib/commands.py b/lib/commands.py index b89cd142..89cba37f 100644 --- a/lib/commands.py +++ b/lib/commands.py @@ -122,8 +122,8 @@ class Commands: try: value = ast.literal_eval(value) except: - pass - self.config.set_key(key, value, True) + return False + self.config.set_key(key, value) return True @command('')