Fix python 3.3 and 3.4

pull/46/head
Raphaël Vinot 2016-08-24 10:01:44 +02:00
parent c822c2df9c
commit 1034f73479
1 changed files with 5 additions and 1 deletions

View File

@ -170,7 +170,11 @@ class ListModules(tornado.web.RequestHandler):
class QueryModule(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 @run_on_executor
def run_request(self, jsonpayload): def run_request(self, jsonpayload):