From: Vincent Le Gallic Date: Fri, 6 Sep 2013 21:23:36 +0000 (+0200) Subject: encodings : neverending story X-Git-Url: http://gitweb.pimeys.fr/?a=commitdiff_plain;h=37a1d18dad5c7d7836c215503eace26efc54533b;p=bots%2Fbasile.git encodings : neverending story --- diff --git a/basile.py b/basile.py index cb2b81c..82bd917 100755 --- a/basile.py +++ b/basile.py @@ -311,7 +311,7 @@ class Basile(ircbot.SingleServerIRCBot): def crash(self, chan="nowhere", who="nobody"): """Fait crasher le bot.""" where = "en privé" if chan == "priv" else "sur le chan %s" % chan - raise CrashError("Crash demandé par %s %s" % (who, where)) + raise CrashError((u"Crash demandé par %s %s" % (who, where)).encode("utf-8")) ACTIONS = { "reload" : execute_reload,