Mercurial > xib
diff bot.py @ 20:08cde283621a
Fixed a little bug in exception handling.
Signed-off-by: Charly COSTE <changaco@changaco.net>
author | Charly COSTE <changaco@changaco.net> |
---|---|
date | Thu, 20 Aug 2009 14:00:45 +0200 |
parents | c1b84196c100 |
children | 801160b4136f |
line wrap: on
line diff
--- 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