comparison bridge.py @ 169:271c35321497

minor fix in bridge.py Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Sat, 30 Jan 2010 10:04:12 +0100
parents 63db565438bd
children 64a0e9636ae6
comparison
equal deleted inserted replaced
168:d3b619cd60fb 169:271c35321497
105 elif error == 'erroneusnickname': 105 elif error == 'erroneusnickname':
106 raise Exception('[Error] "'+self.bot.nickname+'" got "erroneusnickname" on bridge "'+str(self)+'"') 106 raise Exception('[Error] "'+self.bot.nickname+'" got "erroneusnickname" on bridge "'+str(self)+'"')
107 elif error == 'nicknametoolong': 107 elif error == 'nicknametoolong':
108 raise Exception('[Error] "'+self.bot.nickname+'" got "nicknametoolong" on bridge "'+str(self)+'", limit seems to be '+str(arguments[0])) 108 raise Exception('[Error] "'+self.bot.nickname+'" got "nicknametoolong" on bridge "'+str(self)+'", limit seems to be '+str(arguments[0]))
109 else: 109 else:
110 raise Exception('[Error] unknown error for "'+self.bot.nickname+'" on bridge "'+str(self)+'", limit seems to be '+str(arguments[0])) 110 raise Exception('[Error] unknown error for "'+self.bot.nickname+'" on bridge "'+str(self)+'"')
111 except: 111 except:
112 traceback.print_exc() 112 traceback.print_exc()
113 self.bot.error('[Error] failed to connect to the IRC chan of bridge "'+str(self)+'", stopping bridge', send_to_admins=True) 113 self.bot.error('[Error] failed to connect to the IRC chan of bridge "'+str(self)+'", stopping bridge', send_to_admins=True)
114 self.stop(message='failed to connect to the IRC chan') 114 self.stop(message='failed to connect to the IRC chan')
115 115