mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-08-27 15:31:31 +00:00
qt channels_list: use repr() and not str() for exceptions
This commit is contained in:
parent
a8969d8822
commit
d480d52c1c
1 changed files with 3 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue