#NEWLINE# def execute( self , sql , params = None ) : #NEWLINE# #INDENT# self . db . validate_no_broken_transaction ( ) #NEWLINE# with self . db . wrap_database_errors : #NEWLINE# #INDENT# if ( params is None ) : #NEWLINE# #INDENT# return self . cursor . execute ( sql ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return self . cursor . execute ( sql , params )