# 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 --git a/bot.py b/bot.py --- a/bot.py +++ b/bot.py @@ -29,6 +29,7 @@ from bridge import * from time import sleep import re import sys +import xml.parsers.expat class bot(Thread): @@ -83,7 +84,7 @@ class bot(Thread): sleep(0.5) except RuntimeError: pass - except ExpatError: + except xml.parsers.expat.ExpatError: self.error('=> Debug: received invalid stanza', debug=True) continue