aboutsummaryrefslogtreecommitdiff
path: root/modules/github/__init__.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-03-01 21:47:00 +0000
committerGravatar jesopo2019-03-01 21:47:00 +0000
commit293b3a8ce3f4274a8bd98a2a2bf7f70a6798f665 (patch)
tree42ea15de90af88f62252624ed2fca7ee75395684 /modules/github/__init__.py
parentAdd a setting to hide github repo names (diff)
signature
Fix `event` variable name collision (github)
Diffstat (limited to 'modules/github/__init__.py')
-rw-r--r--modules/github/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/github/__init__.py b/modules/github/__init__.py
index 6c766ca5..61e759f9 100644
--- a/modules/github/__init__.py
+++ b/modules/github/__init__.py
@@ -320,9 +320,9 @@ class Module(ModuleManager.BaseModule):
continue
github_events = []
- for event in found_hook["events"]:
+ for hooked_event in found_hook["events"]:
github_events.append(EVENT_CATEGORIES.get(
- event, [event]))
+ hooked_event, [hooked_event]))
github_events = list(itertools.chain(*github_events))
channel = server.channels.get(channel_name)