electrum

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

commit 65c7dfafbc0892ebc94e04288adf1afbe6cf680f
parent 77d7aa772d3f8c10f18b3a3fe5cd9440944a9d34
Author: ThomasV <thomasv@gitorious>
Date:   Fri,  7 Aug 2015 09:00:00 +0200

check alias in signrequest

Diffstat:
Melectrum | 2+-
Mlib/commands.py | 2++
2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/electrum b/electrum @@ -345,7 +345,7 @@ def run_cmdline(config): try: result = func(*args) except Exception: - traceback.print_exc(file=sys.stdout) + traceback.print_exc(file=sys.stderr) sys.exit(1) if type(result) == str: diff --git a/lib/commands.py b/lib/commands.py @@ -584,6 +584,8 @@ class Commands: def signrequest(self, address): "Sign payment request with an OpenAlias" alias = self.config.get('alias') + if not alias: + raise BaseException('No alias in your configuration') alias_addr = self.contacts.resolve(alias)['address'] self.wallet.sign_payment_request(address, alias, alias_addr, self.password)