mirror of https://github.com/MISP/misp-modules
Fix python 3.3 and 3.4
parent
c822c2df9c
commit
1034f73479
|
@ -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…
Reference in New Issue