From 007f1d8a9f032663fd1da4a3d01c3167aafac9de Mon Sep 17 00:00:00 2001 From: Kayou Date: Mon, 15 Jun 2020 13:26:52 +0200 Subject: [PATCH] [fix] bad key path --- server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.py b/server.py index 1cd309a..474f517 100644 --- a/server.py +++ b/server.py @@ -461,8 +461,8 @@ async def github(request): user = request.json["sender"]["login"] url = request.json["commit"]["html_url"] commit_message = request.json["commit"]["commit"]["message"].replace("\n", " ") - if request.json["commit"]["committer"]: - commit_author = request.json["commit"]["committer"]["name"] + if request.json["commit"]["commit"]["committer"]: + commit_author = request.json["commit"]["commit"]["committer"]["name"] else: commit_author = request.json["commit"]["commit"]["author"]["name"] branches = ", ".join((x["name"] for x in request.json["branches"]))