diff options
| author | 2018-11-30 21:09:59 +0000 | |
|---|---|---|
| committer | 2018-11-30 21:09:59 +0000 | |
| commit | aab84096fd83372a4ce6bb17f1bcff81c2308386 (patch) | |
| tree | f49487685d2b6ece36871065a76e4013218abcae | |
| parent | Make coins.py compatible with versions of python under 3.6 (diff) | |
| signature | ||
utf8-decode github webhook json data
| -rw-r--r-- | modules/github.py | 2 |
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": |
