aboutsummaryrefslogtreecommitdiff
path: root/modules/github.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/github.py')
-rw-r--r--modules/github.py2
1 files changed, 2 insertions, 0 deletions
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"]