diff --git a/modules/github.py b/modules/github.py index 268c43ad..45c73619 100644 --- a/modules/github.py +++ b/modules/github.py @@ -14,7 +14,7 @@ class Module(ModuleManager.BaseModule): full_name = data["repository"]["full_name"] for commit in data["commits"]: - id = command["id"] + id = commit["id"] message = commit["message"] author = "%s <%s>" % (commit["author"]["username"], commit["author"]["email"]) diff --git a/modules/rest_api.py b/modules/rest_api.py index d60a874b..bfee0d6f 100644 --- a/modules/rest_api.py +++ b/modules/rest_api.py @@ -27,6 +27,7 @@ class Handler(http.server.BaseHTTPRequestHandler): code = 401 else: if path.startswith("/api/"): + event_response = None try: event_response = _events.on("api").on(method).on( endpoint).call_unsafe_for_result(