X-Git-Url: http://gitweb.pimeys.fr/?p=bots%2Fbasile.git;a=blobdiff_plain;f=basile.py;h=82bd917db74a469df260b1775f6ebc3cb425ac43;hp=cb2b81cd334a04f6250b4d1e43c45702fcf22be2;hb=37a1d18dad5c7d7836c215503eace26efc54533b;hpb=5785a4a7ed95b10cd8144d5c7262ee5c9d8fed04 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,