def _in_thread_run_script(self):
""" Run the script. """
try:
self.run_script()
except Exception as e:
# handle any exception thrown
exc_type,exc_value,exc_traceback = sys.exc_info()
print "Exception Error: ", exc_value
print e
# print traceback, excluding this file
traceback.print_tb(exc_traceback)
# exc_strings = traceback.format_list(traceback.extract_tb(exc_traceback))
# exc_strings = [s for s in exc_strings if s.find("parlay_script.py")< 0 ]
# for s in exc_strings:
# print s
评论列表
文章目录