From fd8af94419f76ea06e8d7d5b953fd44a73065512 Mon Sep 17 00:00:00 2001 From: Amir Taaki Date: Tue, 17 Jul 2012 22:53:06 +0200 Subject: [PATCH] bugfix: signmessage expects 2 arguments. check for them. --- electrum | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/electrum b/electrum index b0997428f..d9278607d 100755 --- a/electrum +++ b/electrum @@ -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: