From ce1558e48b3bdf8848e2ffa1ee4557c4bafe65ae Mon Sep 17 00:00:00 2001 From: jesopo Date: Thu, 16 May 2019 14:25:37 +0100 Subject: [PATCH] Catch-and-bury utils.EventError in auto-github code --- modules/github/__init__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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"],