#NEWLINE# def on_error( self , state , e ) : #NEWLINE# #INDENT# trans_ignore_redirects = ( state . request . method not in ( 'GET' , 'HEAD' ) ) #NEWLINE# if ( state . controller is not None ) : #NEWLINE# #INDENT# trans_ignore_redirects = _cfg ( state . controller ) . get ( 'transactional_ignore_redirects' , trans_ignore_redirects ) #NEWLINE# #UNINDENT# if ( ( type ( e ) is HTTPFound ) and ( trans_ignore_redirects is True ) ) : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# state . request . error = True