#NEWLINE# def exception( self , message , formatted_traceback ) : #NEWLINE# #INDENT# '\n        Mark that task raised an exception\n        ' #NEWLINE# self . status = 'FAILURE' #NEWLINE# self . end = now ( ) #NEWLINE# self . message = message #NEWLINE# self . traceback = message #NEWLINE# self . save ( )