fix requests_dir bug
This commit is contained in:
parent
d75d3fdf5b
commit
10740470cc
|
@ -1241,9 +1241,10 @@ class Abstract_Wallet(object):
|
||||||
out['status'] = self.get_request_status(addr)
|
out['status'] = self.get_request_status(addr)
|
||||||
# check if bip70 file exists
|
# check if bip70 file exists
|
||||||
rdir = config.get('requests_dir')
|
rdir = config.get('requests_dir')
|
||||||
|
if rdir:
|
||||||
key = out.get('id', addr)
|
key = out.get('id', addr)
|
||||||
path = os.path.join(rdir, key + '.bip70')
|
path = os.path.join(rdir, key + '.bip70')
|
||||||
if rdir and os.path.exists(path):
|
if os.path.exists(path):
|
||||||
baseurl = 'file://' + rdir
|
baseurl = 'file://' + rdir
|
||||||
rewrite = config.get('url_rewrite')
|
rewrite = config.get('url_rewrite')
|
||||||
if rewrite:
|
if rewrite:
|
||||||
|
|
Loading…
Reference in New Issue