qweechat icon indicating copy to clipboard operation
qweechat copied to clipboard

Cannot connect to any server

Open cafehaine opened this issue 4 years ago • 1 comments

Something changed on the QT side, and now the client cannot connect to any relay:

$[130] 19:42      ~     > qweechat
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/qweechat/qweechat.py", line 276, in connect_weechat
    int(self.connection_dialog.fields['lines'].text()))
  File "/usr/lib/python2.7/site-packages/qweechat/network.py", line 143, in connect_weechat
    self.statusChanged.emit(self.status_connecting, None)
TypeError: Network.statusChanged[str, str].emit(): argument 2 has unexpected type 'NoneType'
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/qweechat/network.py", line 72, in _socket_connected
    self.statusChanged.emit(self.status_connected, None)
TypeError: Network.statusChanged[str, str].emit(): argument 2 has unexpected type 'NoneType'

Looks like QT now forces the use of a string

cafehaine avatar Jul 28 '19 17:07 cafehaine

The issue is also present at line 112 and 143 of network.py Replacing None by "" seems to fix the issue

cafehaine avatar Jul 29 '19 09:07 cafehaine