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
This commit is contained in:
parent
f907ae7054
commit
d48b1bc417
@ -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):
|
||||
|
Loading…
x
Reference in New Issue
Block a user