tbugfix: signmessage expects 2 arguments. check for them. - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit fd8af94419f76ea06e8d7d5b953fd44a73065512 DIR parent e6965ef32c09794247bf04acb4601ce81b5443aa HTML Author: Amir Taaki <genjix@riseup.net> Date: Tue, 17 Jul 2012 22:53:06 +0200 bugfix: signmessage expects 2 arguments. check for them. Diffstat: M electrum | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) --- DIR diff --git a/electrum b/electrum t@@ -491,6 +491,10 @@ if __name__ == '__main__': wallet.update_password(seed, password, new_password) elif cmd == 'signmessage': + if len(args) < 3: + print_error("Error: Invalid usage of signmessage.") + print known_commands[cmd] + sys.exit(1) address = args[1] message = ' '.join(args[2:]) if len(args) > 3: