sys.exc_info() - raw exceptions. Some of them can be pickled, for example, traceback-object. For those who use the API, easier to read the text messages. traceback.format_exc() simply converts data from sys.exc_info() into a string.