#NEWLINE# def Update( self , error_id , user_message ) : #NEWLINE# #INDENT# error = self . db . session . query ( models . Error ) . get ( self ) #NEWLINE# if ( not error ) : #NEWLINE# #INDENT# raise InvalidErrorReference ( ( 'No error with id ' + str ( error_id ) ) ) #NEWLINE# #UNINDENT# error . user_message = patch_data [ 'user_message' ] #NEWLINE# self . db . session . merge ( error ) #NEWLINE# self . db . session . commit ( )