]> gitweb.pimeys.fr Git - bots/basile.git/blobdiff - basile.py
encodings : neverending story
[bots/basile.git] / basile.py
index cb2b81cd334a04f6250b4d1e43c45702fcf22be2..82bd917db74a469df260b1775f6ebc3cb425ac43 100755 (executable)
--- 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,