#NEWLINE# def format_exception( e ) : #NEWLINE# #INDENT# 'Returns a string containing the type and text of the exception.\n\n    ' #NEWLINE# from . utils.printing import fill #NEWLINE# return '\n' . join ( ( fill ( line ) for line in traceback . format_exception_only ( type ( e ) , e ) ) )