dont wrap errors

This commit is contained in:
j 2014-05-27 16:19:50 +02:00
parent 95085bde8c
commit 93fcdc60ac
1 changed files with 3 additions and 1 deletions

View File

@ -113,7 +113,9 @@ class ApiHandler(tornado.web.RequestHandler):
return
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.write(response)