diff options
| author | 2019-05-16 14:25:37 +0100 | |
|---|---|---|
| committer | 2019-05-16 14:25:37 +0100 | |
| commit | ce1558e48b3bdf8848e2ffa1ee4557c4bafe65ae (patch) | |
| tree | 806353e0ea445b070e1e16e41e56a042b5871878 | |
| parent | \S not \s in github issue ref regex (diff) | |
| signature | ||
Catch-and-bury utils.EventError in auto-github code
| -rw-r--r-- | modules/github/__init__.py | 5 |
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"], |
