title: Formatting and capturing sys.exc_info error messages
body: <p>I'm trying to format and get the information from sys.exc_info by  <code>''.join(traceback.format_stack())</code>, but with no luck, Any suggestions on how I can get all the information from sys.esc_info, into  a string. I need to finally write all this information into a table.</p>