diff --git a/IrcClient.py b/IrcClient.py index 1d8647a..4891027 100644 --- a/IrcClient.py +++ b/IrcClient.py @@ -52,7 +52,7 @@ class IrcClient: self.close(); return False; else: select.select([], [self.clientSocket.fileno()], []) - self.clientSocketFile = self.clientSocket.makefile(encoding="utf-8") + self.clientSocketFile = self.clientSocket.makefile(encoding="utf-8", errors="replace") self.clientQueue = [] self.queue("NICK", self.clientNick) self.queue("USER", self.clientIdent, "0", "0", self.clientGecos)