This commit is contained in:
SomberNight 2018-04-03 19:18:10 +02:00
parent 13bd10e1cb
commit ffe69cb328
No known key found for this signature in database
GPG key ID: B33B5F232C6271E9

View file

@ -1531,7 +1531,10 @@ class Abstract_Wallet(PrintError):
baseurl = 'file://' + rdir
rewrite = config.get('url_rewrite')
if rewrite:
baseurl = baseurl.replace(*rewrite)
try:
baseurl = baseurl.replace(*rewrite)
except BaseException as e:
self.print_stderr('Invalid config setting for "url_rewrite". err:', e)
out['request_url'] = os.path.join(baseurl, 'req', key[0], key[1], key, key)
out['URI'] += '&r=' + out['request_url']
out['index_url'] = os.path.join(baseurl, 'index.html') + '?id=' + key