aboutsummaryrefslogtreecommitdiff
path: root/modules/github.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-11-30 21:09:59 +0000
committerGravatar jesopo2018-11-30 21:09:59 +0000
commitaab84096fd83372a4ce6bb17f1bcff81c2308386 (patch)
treef49487685d2b6ece36871065a76e4013218abcae /modules/github.py
parentMake coins.py compatible with versions of python under 3.6 (diff)
signature
utf8-decode github webhook json data
Diffstat (limited to 'modules/github.py')
-rw-r--r--modules/github.py2
1 files changed, 1 insertions, 1 deletions
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":