protect from the case of not passing an event
in moving to the event object, we could fail to pass an event, make that ok for now. Can clean up and separate this later. Change-Id: I33359cf437fb4617390ea8cd43d5b3e57aef3ce5
This commit is contained in:
parent
84200edb88
commit
1fa614169b
@ -123,12 +123,13 @@ class RecheckWatch(threading.Thread):
|
||||
if self.ircbot:
|
||||
self.ircbot.send(channel, msg)
|
||||
|
||||
def _read(self, event, msg=""):
|
||||
def _read(self, event=None, msg=""):
|
||||
for channel in self.channel_config.channels:
|
||||
if msg:
|
||||
if channel in self.channel_config.events['negative']:
|
||||
self.print_msg(channel, msg)
|
||||
elif event.bugs:
|
||||
elif event:
|
||||
if event.bugs:
|
||||
if channel in self.channel_config.events['positive']:
|
||||
self.error_found(channel, event)
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user