electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit cefb1c9bc0fdfc808248d1715a5afa339871dec1
parent c5d3adcf32c5148c9890dbcb68bfab663e554b7c
Author: ThomasV <thomasv@electrum.org>
Date:   Sat, 29 Jul 2017 06:33:49 +0200

Merge pull request #2644 from jrjackso/fix-commands

Fixes issue calling commands that do not require a password, such as help
Diffstat:
Mlib/commands.py | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lib/commands.py b/lib/commands.py @@ -101,7 +101,11 @@ class Commands: if password is None: return f = getattr(self, method) - result = f(*args, **{'password':password}) + if cmd.requires_password: + result = f(*args, **{'password':password}) + else: + result = f(*args) + if self._callback: apply(self._callback, ()) return result