dont wrap errors
This commit is contained in:
parent
95085bde8c
commit
93fcdc60ac
1 changed files with 3 additions and 1 deletions
|
@ -113,7 +113,9 @@ class ApiHandler(tornado.web.RequestHandler):
|
||||||
return
|
return
|
||||||
|
|
||||||
response = yield tornado.gen.Task(api_task, self._app, self.request)
|
response = yield tornado.gen.Task(api_task, self._app, self.request)
|
||||||
response = json_dumps(json_response(response))
|
if not 'status' in response:
|
||||||
|
response = json_response(response)
|
||||||
|
response = json_dumps(response)
|
||||||
self.set_header('Content-Type', 'application/json')
|
self.set_header('Content-Type', 'application/json')
|
||||||
self.write(response)
|
self.write(response)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue