URI: 
       tfix #4220 - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit ffe69cb32802cb3a53f91efe5ba83e3d3890a6a0
   DIR parent 13bd10e1cbb12e9efd412ed2bc8e0f36134895b9
  HTML Author: SomberNight <somber.night@protonmail.com>
       Date:   Tue,  3 Apr 2018 19:18:10 +0200
       
       fix #4220
       
       Diffstat:
         M lib/wallet.py                       |       5 ++++-
       
       1 file changed, 4 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/lib/wallet.py b/lib/wallet.py
       t@@ -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