check amount before calling make_payment_request

This commit is contained in:
ThomasV 2015-06-11 12:32:52 +02:00
parent ba78093e2e
commit 317a9de71d
1 changed files with 1 additions and 1 deletions

View File

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