From d48b1bc41717291e43425ff437d6214b6934f60f Mon Sep 17 00:00:00 2001 From: Joshua Hesketh Date: Mon, 14 Dec 2015 18:17:49 +1100 Subject: [PATCH] Fix reconnection method The reconnect method is on the connection object, not the bot or client objects. See http://paste.openstack.org/show/481770/ Change-Id: I14856c0c451e51973e9b062cb9b4f35362cb3766 --- gerritbot/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gerritbot/bot.py b/gerritbot/bot.py index e050ca5..d024537 100755 --- a/gerritbot/bot.py +++ b/gerritbot/bot.py @@ -117,7 +117,7 @@ class GerritBot(irc.bot.SingleServerIRCBot): time.sleep(0.5) except Exception: self.log.exception('Exception sending message:') - self.reconnect() + self.connection.reconnect() class Gerrit(threading.Thread):