diff bridge.py @ 191:ac89a4a72a62

removed buggy exception catch in bridge.py Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Sun, 21 Feb 2010 12:08:42 +0100
parents 6db99e458168
children 12fa9bb73b1d
line wrap: on
line diff
--- a/bridge.py
+++ b/bridge.py
@@ -153,17 +153,14 @@ class Bridge:
 		if nickname == 'ChanServ' and from_protocol == 'irc':
 			return
 		
-		self.lock.acquire()
 		self.bot.error(3, 'adding participant "'+nickname+'" from "'+from_protocol+'" to bridge "'+str(self)+'"', debug=True)
 		try:
 			p = Participant(self, from_protocol, nickname, real_jid=real_jid)
-		except IOError:
-			self.bot.error(3, 'IOError while adding participant "'+nickname+'" from "'+from_protocol+'" to bridge "'+str(self)+'", reconnectiong ...', debug=True)
-			p.xmpp_c.reconnectAndReauth()
 		except:
 			self.bot.error(3, 'unknown error while adding participant "'+nickname+'" from "'+from_protocol+'" to bridge "'+str(self)+'"', debug=True)
 			traceback.print_exc()
 			return
+		self.lock.acquire()
 		self.participants.append(p)
 		self.lock.release()
 		if self.mode not in ['normal', 'bypass']: