diff irclib.py @ 86:bfa32b017fc9

First hack at an error notification system Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Sun, 06 Sep 2009 15:34:49 +0200
parents 4e18b435566a
children 500d47b1d8cd
line wrap: on
line diff
--- a/irclib.py
+++ b/irclib.py
@@ -198,8 +198,7 @@ class IRC:
                         try:
                             c.process_data()
                         except:
-                            self.bot.error('[Error] Unkonwn exception on IRC thread:')
-                            traceback.print_exc()
+                            self.bot.error('[Error] Unkonwn exception on IRC thread:\n'+traceback.format_exc(), send_to_admins=True)
                     c.lock.release()
 
     def process_timeout(self):