From f85ed3d7289ed4e410d54697fcb06f855dda89d5 Mon Sep 17 00:00:00 2001 From: Janus Date: Wed, 10 Oct 2018 13:47:23 +0200 Subject: [PATCH] qt channels_list: use repr() and not str() for exceptions --- electrum/gui/qt/channels_list.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/electrum/gui/qt/channels_list.py b/electrum/gui/qt/channels_list.py index e811f80bd..d243bad64 100644 --- a/electrum/gui/qt/channels_list.py +++ b/electrum/gui/qt/channels_list.py @@ -1,4 +1,5 @@ # -*- coding: utf-8 -*- +import asyncio from PyQt5 import QtCore, QtWidgets from PyQt5.QtWidgets import * @@ -116,4 +117,5 @@ class ChannelsList(MyTreeWidget): try: self.parent.wallet.lnworker.open_channel(*args, **kwargs) except Exception as e: - self.parent.show_error('Cannot open channel: %s' % str(e)) + # don't use str(e) because str(asyncio.TimeoutError()) (and many others) is '' + self.parent.show_error('Cannot open channel: %s' % repr(e))