--- a/eric6/Cooperation/CooperationClient.py Mon Mar 01 17:48:43 2021 +0100 +++ b/eric6/Cooperation/CooperationClient.py Tue Mar 02 17:17:09 2021 +0100 @@ -215,7 +215,7 @@ @param connection connection that caused the error @type Connection """ - if socketError != QAbstractSocket.RemoteHostClosedError: + if socketError != QAbstractSocket.SocketError.RemoteHostClosedError: if connection.peerPort() != 0: msg = "* {0}:{1}\n{2}\n".format( connection.peerAddress().toString(),