Fix python 3.3 and 3.4

pull/46/head
Raphaël Vinot 6 years ago
parent c822c2df9c
commit 1034f73479
  1. 6
      misp_modules/__init__.py

@ -170,7 +170,11 @@ class ListModules(tornado.web.RequestHandler):
class QueryModule(tornado.web.RequestHandler):
executor = ThreadPoolExecutor(None)
try:
# Python 3.5, use as many threads as possible
executor = ThreadPoolExecutor()
except:
executor = ThreadPoolExecutor(5)
@run_on_executor
def run_request(self, jsonpayload):

Loading…
Cancel
Save