From 908edeb1e168afe19e17ac0b04c72d0579283863 Mon Sep 17 00:00:00 2001 From: jesopo Date: Sat, 6 Oct 2018 09:24:43 +0100 Subject: Typo in modules/github.py ('command' -> 'commit') and declare event_response outside of try/except in modules/rest_api.py --- modules/rest_api.py | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/rest_api.py') 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( -- cgit v1.3.1-10-gc9f91