Browse Source

check amount before calling make_payment_request

283
ThomasV 10 years ago
parent
commit
317a9de71d
  1. 2
      lib/wallet.py

2
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')

Loading…
Cancel
Save