diff --git a/main.py b/main.py index 421ef29..db85c9a 100644 --- a/main.py +++ b/main.py @@ -150,7 +150,7 @@ def gh_webhook(): if star_action == 'deleted': res_string = 'ok' else: - star_sender = json.get('sender') + star_sender = json_data.get('sender') star_timestamp = json.get('starred_at') star_giver = star_sender['login'] res_string += f'{star_giver} starred {repo_name} on {star_timestamp}.'