From 37a1d18dad5c7d7836c215503eace26efc54533b Mon Sep 17 00:00:00 2001 From: Vincent Le Gallic Date: Fri, 6 Sep 2013 23:23:36 +0200 Subject: [PATCH] encodings : neverending story --- basile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.39.2