From 11ade023e84b712cdcd496cd5ad4408ebfff272d Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 14 Oct 2019 14:03:47 +0100 Subject: [PATCH] eat errors for failing to parse @commit --- modules/github.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/github.py b/modules/github.py index 62b7cdc9..c5e9b18e 100644 --- a/modules/github.py +++ b/modules/github.py @@ -105,7 +105,11 @@ class Module(ModuleManager.BaseModule): event.eat() ref = event["match"].group(0) if self._auto_github_cooldown(event["target"], ref): - out = self._parse_commit(event["target"], ref) + try: + out = self._parse_commit(event["target"], ref) + except utils.EventError: + return + if out: event["stdout"].write(out)