# HG changeset patch # User Charly COSTE # Date 1250769645 -7200 # Node ID 08cde283621aa45336c887ea8005bd599ca2d757 # Parent c1b84196c100ff4d2dae0740cef6b62dbd23a900 Fixed a little bug in exception handling. Signed-off-by: Charly COSTE diff -r c1b84196c100 -r 08cde283621a bot.py --- a/bot.py Thu Aug 20 13:20:50 2009 +0200 +++ b/bot.py Thu Aug 20 14:00:45 2009 +0200 @@ -29,6 +29,7 @@ from time import sleep import re import sys +import xml.parsers.expat class bot(Thread): @@ -83,7 +84,7 @@ sleep(0.5) except RuntimeError: pass - except ExpatError: + except xml.parsers.expat.ExpatError: self.error('=> Debug: received invalid stanza', debug=True) continue