]> gitweb.pimeys.fr Git - bots/basile.git/commitdiff
encodings : neverending story
authorVincent Le Gallic <legallic@crans.org>
Fri, 6 Sep 2013 21:23:36 +0000 (23:23 +0200)
committerVincent Le Gallic <legallic@crans.org>
Fri, 6 Sep 2013 21:23:36 +0000 (23:23 +0200)
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
     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,
     
     ACTIONS = {
         "reload" : execute_reload,