URI: 
       tfix #4128 - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit 71dff2a06e3d462a2833d50002c32b2103dd0a7c
   DIR parent a02bd2c18343b0fe11103cbf8912d4096f407e37
  HTML Author: SomberNight <somber.night@protonmail.com>
       Date:   Thu, 15 Mar 2018 14:17:27 +0100
       
       fix #4128
       
       Diffstat:
         M gui/qt/main_window.py               |       6 +++++-
       
       1 file changed, 5 insertions(+), 1 deletion(-)
       ---
   DIR diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py
       t@@ -2308,7 +2308,11 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
                    self.pay_to_URI(data)
                    return
                # else if the user scanned an offline signed tx
       -        data = bh2u(bitcoin.base_decode(data, length=None, base=43))
       +        try:
       +            data = bh2u(bitcoin.base_decode(data, length=None, base=43))
       +        except BaseException as e:
       +            self.show_error((_('Could not decode QR code')+':\n{}').format(e))
       +            return
                tx = self.tx_from_text(data)
                if not tx:
                    return