#NEWLINE# @ property #NEWLINE# def exception( self ) : #NEWLINE# #INDENT# if ( self . _exc_info is None ) : #NEWLINE# #INDENT# return '' #NEWLINE# #UNINDENT# lines = traceback . format_exception_only ( * lines . _exc_info [ : 2 ] ) #NEWLINE# rv = '' . join ( lines ) . decode ( 'utf-8' , 'replace' ) #NEWLINE# return rv . rstrip ( )