From 90e906aba23a27fe4e62bf6556633b21bee3be23 Mon Sep 17 00:00:00 2001 From: Bradley Ray <89326133+bradley-ray@users.noreply.github.com> Date: Fri, 10 Sep 2021 18:19:06 -0500 Subject: [PATCH] Update new password prompt (#7495) No longer prompts for new password if --new_password parameter is used --- run_electrum | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_electrum b/run_electrum index 1d51cec82..113b65298 100755 --- a/run_electrum +++ b/run_electrum @@ -166,7 +166,7 @@ def init_cmdline(config_options, wallet_path, server, *, config: 'SimpleConfig') config_options['password'] = config_options.get('password') or password - if cmd.name == 'password': + if cmd.name == 'password' and 'new_password' not in config_options: new_password = prompt_password('New password:') config_options['new_password'] = new_password