aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2019-05-16 14:25:37 +0100
committerGravatar jesopo2019-05-16 14:25:37 +0100
commitce1558e48b3bdf8848e2ffa1ee4557c4bafe65ae (patch)
tree806353e0ea445b070e1e16e41e56a042b5871878 /modules
parent\S not \s in github issue ref regex (diff)
signature
Catch-and-bury utils.EventError in auto-github code
Diffstat (limited to 'modules')
-rw-r--r--modules/github/__init__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/github/__init__.py b/modules/github/__init__.py
index fdd1c94d..3f9b6bd4 100644
--- a/modules/github/__init__.py
+++ b/modules/github/__init__.py
@@ -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):
- result = self._get_info(event["channel"], match.group(0))
+ 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"],