aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorGravatar jesopo2018-11-30 21:39:28 +0000
committerGravatar jesopo2018-11-30 21:39:28 +0000
commit35108efc5f77e04a647544fdc008f1cf20fa4753 (patch)
treea19707403979217d19a9d75aa65fd37ba83501bf /modules
parentutf8-decode github webhook json data (diff)
signature
rest_api.py's '_safe_handle' function isn't used and doesn't need to be used now
that API calls are thrown straight on to the main thread
Diffstat (limited to 'modules')
-rw-r--r--modules/rest_api.py8
1 files changed, 0 insertions, 8 deletions
diff --git a/modules/rest_api.py b/modules/rest_api.py
index 601eebd8..74575ff4 100644
--- a/modules/rest_api.py
+++ b/modules/rest_api.py
@@ -54,14 +54,6 @@ class Handler(http.server.BaseHTTPRequestHandler):
self.send_header("Content-type", "application/json")
self.end_headers()
self.wfile.write(response.encode("utf8"))
- def _safe_handle(self, method, path, params):
- _bot.lock.acquire()
- try:
- self._handle(method, path, params)
- except:
- pass
- finally:
- _bot.lock.release()
def _decode_params(self, s):
params = urllib.parse.parse_qs(s)