electrum

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

commit 317a9de71d8711a59b14b2bfa546e8966fa5bd86
parent ba78093e2eae25fcd81c78c6404b8e1d8f50e91c
Author: ThomasV <thomasv@gitorious>
Date:   Thu, 11 Jun 2015 12:32:52 +0200

check amount before calling make_payment_request

Diffstat:
Mlib/wallet.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/wallet.py b/lib/wallet.py @@ -1279,7 +1279,7 @@ class Abstract_Wallet(object): self.set_label(addr, message) # should be a default label rdir = config.get('requests_dir') req = self.get_payment_request(addr, config) - if rdir: + if rdir and amount is not None: if not os.path.exists(rdir): os.mkdir(rdir) index = os.path.join(rdir, 'index.html')