From c3c60801170a595ac018aee01fcd4b0161452678 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 6 Nov 2018 14:01:49 +0000 Subject: Don't parse github events when there are no channels listening for the given repo --- modules/github.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules') diff --git a/modules/github.py b/modules/github.py index 48d29159..9856930d 100644 --- a/modules/github.py +++ b/modules/github.py @@ -22,6 +22,8 @@ class Module(ModuleManager.BaseModule): enumerate(hooks))[::-1]: if not full_name in values: hooks.pop(i) + if not hooks: + return github_event = event["headers"]["X-GitHub-Event"] -- cgit v1.3.1-10-gc9f91