From aab84096fd83372a4ce6bb17f1bcff81c2308386 Mon Sep 17 00:00:00 2001 From: jesopo Date: Fri, 30 Nov 2018 21:09:59 +0000 Subject: utf8-decode github webhook json data --- modules/github.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/github.py b/modules/github.py index e1b23ea8..36a04f0b 100644 --- a/modules/github.py +++ b/modules/github.py @@ -33,7 +33,7 @@ COMMENT_ACTIONS = { class Module(ModuleManager.BaseModule): @utils.hook("api.post.github") def github(self, event): - data = json.loads(event["data"]) + data = json.loads(event["data"].decode("utf8")) github_event = event["headers"]["X-GitHub-Event"] if github_event == "ping": -- cgit v1.3.1-10-gc9f91