Browse Source

qt channels_list: use repr() and not str() for exceptions

regtest_lnd
Janus 6 years ago
committed by SomberNight
parent
commit
f85ed3d728
No known key found for this signature in database GPG Key ID: B33B5F232C6271E9
  1. 4
      electrum/gui/qt/channels_list.py

4
electrum/gui/qt/channels_list.py

@ -1,4 +1,5 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
import asyncio
from PyQt5 import QtCore, QtWidgets from PyQt5 import QtCore, QtWidgets
from PyQt5.QtWidgets import * from PyQt5.QtWidgets import *
@ -116,4 +117,5 @@ class ChannelsList(MyTreeWidget):
try: try:
self.parent.wallet.lnworker.open_channel(*args, **kwargs) self.parent.wallet.lnworker.open_channel(*args, **kwargs)
except Exception as e: 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))

Loading…
Cancel
Save