IRC bot that reports on Gerrit events
Go to file
James E. Blair bcb72904de Reconnect to IRC on send error
If any error is encountered while sending to IRC, try to reconnect.

This is an attempt to deal with this exception:

2013-10-07 23:00:00,937 ERROR gerritbot: Exception encountered in event loop
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/gerritbot/bot.py", line 225, in run
    self._read(event)
  File "/usr/local/lib/python2.7/dist-packages/gerritbot/bot.py", line 216, in _read
    self.change_merged(channel, data)
  File "/usr/local/lib/python2.7/dist-packages/gerritbot/bot.py", line 194, in change_merged
    self.ircbot.send(channel, msg)
  File "/usr/local/lib/python2.7/dist-packages/gerritbot/bot.py", line 98, in send
    self.connection.privmsg(channel, msg)
  File "/usr/local/lib/python2.7/dist-packages/irc/client.py", line 933, in privmsg
    self.send_raw("PRIVMSG %s :%s" % (target, text))
  File "/usr/local/lib/python2.7/dist-packages/irc/client.py", line 960, in send_raw
    sender = self.ssl.write if self.ssl else self.socket.send
AttributeError: 'NoneType' object has no attribute 'send'

Change-Id: I8c845626260ec7b9ee7f9e409adba4796dd367ee
2013-10-07 16:07:22 -07:00
doc/source Create initial sphinx documentation 2012-11-25 19:27:01 -05:00
gerritbot Reconnect to IRC on send error 2013-10-07 16:07:22 -07:00
.gitignore Migrate to pbr. 2013-06-02 10:37:00 -04:00
.gitreview Updated .gitreview location 2012-12-16 10:40:29 -08:00
LICENSE Add Apache 2 license file. 2012-08-02 16:37:04 -07:00
MANIFEST.in Migrate to pbr. 2013-06-02 10:37:00 -04:00
README.rst Update online documentation link 2013-01-09 14:06:01 -08:00
gerritbot.init Install gerritbot to /usr/local/bin. 2012-07-31 14:06:48 -07:00
requirements.txt Renamed requirements files to standard names. 2013-06-02 11:20:42 -04:00
setup.cfg Migrate to pbr. 2013-06-02 10:37:00 -04:00
setup.py Migrate to pbr. 2013-06-02 10:37:00 -04:00
test-requirements.txt Remove dependency on distribute. 2013-07-05 21:12:44 -04:00
tox.ini Renamed requirements files to standard names. 2013-06-02 11:20:42 -04:00

README.rst

GerritBot

Gerritbot is an IRC bot that will notify IRC channels of Gerrit events.

To install:

$ sudo python setup.py install

Online documentation:

Developers

Bug report:

Cloning:

Patches are submitted via Gerrit at:

More details on how you can contribute is available on our wiki at:

License

Copyright 2011 OpenStack, LLC Copyright 2012-2013 Hewlett-Packard Development Company, L.P.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.