URI: 
       texception formatting: use repr(e) instead of str(e) in messages - electrum - Electrum Bitcoin wallet
  HTML git clone https://git.parazyd.org/electrum
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
       ---
   DIR commit d77e4d8f5d5afebe303f412cd3b28829f4156fb7
   DIR parent 44a2ceab3c23ec6ba1fa4dfd182086cefd1e5cf6
  HTML Author: SomberNight <somber.night@protonmail.com>
       Date:   Thu, 17 Jan 2019 17:16:19 +0100
       
       exception formatting: use repr(e) instead of str(e) in messages
       
       repr(e) is more useful
       
       Diffstat:
         M electrum/base_wizard.py             |       2 +-
         M electrum/gui/qt/__init__.py         |       2 +-
         M electrum/gui/qt/main_window.py      |       2 +-
         M electrum/interface.py               |       2 +-
         M electrum/plugins/email_requests/qt… |       4 ++--
         M setup.py                            |       2 +-
       
       6 files changed, 7 insertions(+), 7 deletions(-)
       ---
   DIR diff --git a/electrum/base_wizard.py b/electrum/base_wizard.py
       t@@ -239,7 +239,7 @@ class BaseWizard(object):
                try:
                    scanned_devices = devmgr.scan_devices()
                except BaseException as e:
       -            devmgr.print_error('error scanning devices: {}'.format(e))
       +            devmgr.print_error('error scanning devices: {}'.format(repr(e)))
                    debug_msg = '  {}:\n    {}'.format(_('Error scanning devices'), e)
                else:
                    debug_msg = ''
   DIR diff --git a/electrum/gui/qt/__init__.py b/electrum/gui/qt/__init__.py
       t@@ -133,7 +133,7 @@ class ElectrumGui(PrintError):
                        self.app.setStyleSheet(qdarkstyle.load_stylesheet_pyqt5())
                    except BaseException as e:
                        use_dark_theme = False
       -                self.print_error('Error setting dark theme: {}'.format(e))
       +                self.print_error('Error setting dark theme: {}'.format(repr(e)))
                # Even if we ourselves don't set the dark theme,
                # the OS/window manager/etc might set *a dark theme*.
                # Hence, try to choose colors accordingly:
   DIR diff --git a/electrum/gui/qt/main_window.py b/electrum/gui/qt/main_window.py
       t@@ -2409,7 +2409,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
                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))
       +            self.show_error((_('Could not decode QR code')+':\n{}').format(repr(e)))
                    return
                tx = self.tx_from_text(data)
                if not tx:
   DIR diff --git a/electrum/interface.py b/electrum/interface.py
       t@@ -267,7 +267,7 @@ class Interface(PrintError):
                    try:
                        return await func(self, *args, **kwargs)
                    except GracefulDisconnect as e:
       -                self.print_error("disconnecting gracefully. {}".format(e))
       +                self.print_error("disconnecting gracefully. {}".format(repr(e)))
                    finally:
                        await self.network.connection_down(self)
                        self.got_disconnected.set_result(1)
   DIR diff --git a/electrum/plugins/email_requests/qt.py b/electrum/plugins/email_requests/qt.py
       t@@ -91,7 +91,7 @@ class Processor(threading.Thread, PrintError):
                        self.M = imaplib.IMAP4_SSL(self.imap_server)
                        self.M.login(self.username, self.password)
                    except BaseException as e:
       -                self.print_error('connecting failed: {}'.format(e))
       +                self.print_error('connecting failed: {}'.format(repr(e)))
                        self.connect_wait *= 2
                    else:
                        self.reset_connect_wait()
       t@@ -100,7 +100,7 @@ class Processor(threading.Thread, PrintError):
                        try:
                            self.poll()
                        except BaseException as e:
       -                    self.print_error('polling failed: {}'.format(e))
       +                    self.print_error('polling failed: {}'.format(repr(e)))
                            break
                        time.sleep(self.polling_interval)
                    time.sleep(random.randint(0, self.connect_wait))
   DIR diff --git a/setup.py b/setup.py
       t@@ -72,7 +72,7 @@ class CustomInstallCommand(install):
                        if not os.path.exists(path):
                            subprocess.call(["pyrcc5", "icons.qrc", "-o", path])
                    except Exception as e:
       -                print('Warning: building icons file failed with {}'.format(e))
       +                print('Warning: building icons file failed with {}'.format(repr(e)))
        
        
        setup(