#NEWLINE# def update_response_result( self , response , result ) : #NEWLINE# #INDENT# if ( result . state == states . FAILURE ) : #NEWLINE# #INDENT# response . update ( { #NEWLINE# #INDENT# 'result' : self . safe_result ( result . result ) , #NEWLINE# 'traceback' : result . traceback , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# response . update ( { #NEWLINE# #INDENT# 'result' : self . safe_result ( result . result ) , #NEWLINE# #UNINDENT# } )