Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def handle_error (self):
dummy, t, v, info = asyncore.compact_traceback ()
self.has_result = False
self.logger.trace ()
self.handle_close (v)
def close_case (self):
if self.request:
description, data = self.cur and self.cur.description or None, None
if description:
try:
data = self.fetchall ()
except:
self.logger.trace ()
self.expt = asyncore.compact_traceback () [2]
data = None
self.request.handle_result (description or None, self.expt, data)
self.request = None
self.close_cursor ()
self.set_active (False)