Mercurial > xib
diff irclib.py @ 65:75604669fcd9
Some fault tolerance
Signed-off-by: Charly COSTE <changaco@changaco.net>
author | Charly COSTE <changaco@changaco.net> |
---|---|
date | Sun, 30 Aug 2009 13:05:00 +0200 |
parents | 8fc496eaa17b |
children | 2e3561313b0f |
line wrap: on
line diff
--- a/irclib.py +++ b/irclib.py @@ -192,7 +192,11 @@ class IRC: if s == c._get_socket(): c.lock.acquire() if hasattr(c, 'socket'): - c.process_data() + try: + c.process_data() + except: + self.error('[Error] Unkonwn exception on IRC thread:') + traceback.print_exc() c.lock.release() def process_timeout(self):