NonBlock calls need to finish

This commit is contained in:
Ruud
2013-09-03 19:14:59 +02:00
parent 6af00bf026
commit b5993bcc21

View File

@@ -47,10 +47,10 @@ class NonBlockHandler(RequestHandler):
return
try:
self.write(response)
self.finish(response)
except:
log.error('Failed doing nonblock request: %s', (traceback.format_exc()))
self.write({'success': False, 'error': 'Failed returning results'})
self.finish({'success': False, 'error': 'Failed returning results'})
def on_connection_close(self):