From 293b3a8ce3f4274a8bd98a2a2bf7f70a6798f665 Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 1 Mar 2019 21:47:00 +0000 Subject: [PATCH] Fix `event` variable name collision (github) --- modules/github/__init__.py | 4 ++-- 1 file 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)