Mercurial > xib
diff start_bots_from_xml_config.py @ 19:c1b84196c100
Changed format of non-debug error messages, fixed IRC namreply handling, prevented crash when receiving bad XMPP stanza.
Signed-off-by: Charly COSTE <changaco@changaco.net>
author | Charly COSTE <changaco@changaco.net> |
---|---|
date | Thu, 20 Aug 2009 13:20:50 +0200 |
parents | 32a35f7eff70 |
children | 801160b4136f |
line wrap: on
line diff
--- a/start_bots_from_xml_config.py +++ b/start_bots_from_xml_config.py @@ -31,13 +31,13 @@ try: else: config = parse('config.xml') except IOError: - print 'Error: configuration file is missing or cannot be read' + print '[Error] configuration file is missing or cannot be read' quit(1) bots_jids = [] for bot_el in config.getElementsByTagName('bot'): if bot_el.getAttribute('jid') in bots_jids: - print 'Error: you cannot have two bots using the same JID' + print '[Error] you cannot have two bots using the same JID' quit(2) bots_jids.append(bot_el.getAttribute('jid'))