How to use the rs4.asyncore.compact_traceback function in rs4

To help you get started, we’ve selected a few rs4 examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hansroh / aquests / aquests / dbapi / dbconnect.py View on Github external
def handle_error (self):
		dummy, t, v, info = asyncore.compact_traceback ()
		self.has_result = False
		self.logger.trace ()
		self.handle_close (v)
github hansroh / aquests / aquests / dbapi / asynpsycopg2.py View on Github external
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)