Encoding str from utf-8 before sending to socket - correction

pull/1/head
Jadjay 2016-06-21 23:55:11 +02:00
parent 85a90e47db
commit 27d47ba3d0
1 changed files with 1 additions and 1 deletions

View File

@ -795,7 +795,7 @@ class ServerConnection(Connection):
print "TO SERVER:", string
except socket.error, x:
# Ouch!
self.disconnect(u'Connection reset by peer.')
self.disconnect("Connection reset by peer.")
def squit(self, server, comment=""):
"""Send an SQUIT command."""