Don't try to finish an already closed connection
This commit is contained in:
1 parent
96291f63da
commit
33d7d994d4
1 file changed
+2
-1
+2
-1
@@ -50,7 +50,8 @@ class NonBlockHandler(RequestHandler):
|
|||||||
self.finish(response)
|
self.finish(response)
|
||||||
except:
|
except:
|
||||||
log.error('Failed doing nonblock request: %s', (traceback.format_exc()))
|
log.error('Failed doing nonblock request: %s', (traceback.format_exc()))
|
||||||
self.finish({'success': False, 'error': 'Failed returning results'})
|
try: self.finish({'success': False, 'error': 'Failed returning results'})
|
||||||
|
except: pass
|
||||||
|
|
||||||
def on_connection_close(self):
|
def on_connection_close(self):
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user