Catch-and-bury utils.EventError in auto-github code
This commit is contained in:
parent
54e8fc8029
commit
ce1558e48b
1 changed files with 4 additions and 1 deletions
|
@ -228,7 +228,10 @@ class Module(ModuleManager.BaseModule):
|
|||
def channel_message(self, event):
|
||||
match = REGEX_ISSUE.search(event["message"])
|
||||
if match and event["channel"].get_setting("auto-github", False):
|
||||
try:
|
||||
result = self._get_info(event["channel"], match.group(0))
|
||||
except utils.EventError:
|
||||
return
|
||||
if result:
|
||||
hide_prefix = channel.get_setting("github-hide-prefix", False)
|
||||
self.events.on("send.stdout").call(target=event["channel"],
|
||||
|
|
Loading…
Reference in a new issue