Network/IRC/IrcWidget.py

changeset 2292
1e29752b51d7
parent 2280
8e85ca3fabe7
child 2296
da3757bc5218
equal deleted inserted replaced
2286:1991e0bd6012 2292:1e29752b51d7
692 " and port settings.")) 692 " and port settings."))
693 elif error == QAbstractSocket.ConnectionRefusedError: 693 elif error == QAbstractSocket.ConnectionRefusedError:
694 self.networkWidget.addErrorMessage(self.trUtf8("Socket Error"), 694 self.networkWidget.addErrorMessage(self.trUtf8("Socket Error"),
695 self.trUtf8("The connection was refused by the peer. Please check the" 695 self.trUtf8("The connection was refused by the peer. Please check the"
696 " host name and port settings.")) 696 " host name and port settings."))
697 else: 697 elif error == QAbstractSocket.SslHandshakeFailedError:
698 self.networkWidget.addErrorMessage(self.trUtf8("Socket Error"), 698 self.networkWidget.addErrorMessage(self.trUtf8("Socket Error"),
699 self.trUtf8("The following network error occurred:<br/>{0}").format( 699 self.trUtf8("The SSL handshake failed."))
700 self.__socket.errorString())) 700 else:
701 if self.__socket:
702 self.networkWidget.addErrorMessage(self.trUtf8("Socket Error"),
703 self.trUtf8("The following network error occurred:<br/>{0}").format(
704 self.__socket.errorString()))
705 else:
706 self.networkWidget.addErrorMessage(self.trUtf8("Socket Error"),
707 self.trUtf8("A network error occurred."))
701 708
702 def __sslErrors(self, errors): 709 def __sslErrors(self, errors):
703 """ 710 """
704 Private slot to handle SSL errors. 711 Private slot to handle SSL errors.
705 712

eric ide

mercurial