diff bridge.py @ 265:48cf498b9620

minor change in Bridge, lighten up error message in _xmpp_join_callback Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Tue, 23 Mar 2010 00:16:39 +0100
parents 73d6e284c18d
children f861a7038ad3
line wrap: on
line diff
--- a/bridge.py
+++ b/bridge.py
@@ -130,7 +130,7 @@ class Bridge:
 				except xmpp.muc.RemoteServerNotFound:
 					self._RemoteServerNotFound_handler()
 				except:
-					trace = traceback.format_exc()
+					trace = traceback.format_exc().splitlines()[-1]
 			self.bot.error(say_levels.error, 'failed to connect to the XMPP room of bridge "'+str(self)+'", stopping bridge\n'+trace, send_to_admins=True)
 			self.stop(message='Failed to connect to the XMPP room, stopping bridge', log=False)