Mercurial > xib
comparison 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 |
comparison
equal
deleted
inserted
replaced
85:dfa030c141f1 | 86:bfa32b017fc9 |
---|---|
196 c.lock.acquire() | 196 c.lock.acquire() |
197 if hasattr(c, 'socket'): | 197 if hasattr(c, 'socket'): |
198 try: | 198 try: |
199 c.process_data() | 199 c.process_data() |
200 except: | 200 except: |
201 self.bot.error('[Error] Unkonwn exception on IRC thread:') | 201 self.bot.error('[Error] Unkonwn exception on IRC thread:\n'+traceback.format_exc(), send_to_admins=True) |
202 traceback.print_exc() | |
203 c.lock.release() | 202 c.lock.release() |
204 | 203 |
205 def process_timeout(self): | 204 def process_timeout(self): |
206 """Called when a timeout notification is due. | 205 """Called when a timeout notification is due. |
207 | 206 |