Browse Source

Don't crash on invalid UTF8

Apparently this is the correct solution to the problem according
to the library author:

  https://bitbucket.org/jaraco/irc/issue/34/irc-client-should-not-crash-on-failed

Change-Id: Ie3661af84982bd54cebd1456b211cedb5495e2bb
changes/14/78814/2
James E. Blair 8 years ago
parent
commit
5d6e389bd3
  1. 6
      statusbot/bot.py

6
statusbot/bot.py

@ -56,6 +56,12 @@ except:
pid_file_module = daemon.pidfile
# https://bitbucket.org/jaraco/irc/issue/34/
# irc-client-should-not-crash-on-failed
# ^ This is why pep8 is a bad idea.
irc.client.ServerConnection.buffer_class.errors = 'replace'
class UpdateInterface(object):
def alert(self, msg=None):
pass

Loading…
Cancel
Save