#NEWLINE# def _try_command( self , cmd ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# self . cur . execute ( cmd ) #NEWLINE# #UNINDENT# except Exception as e : #NEWLINE# #INDENT# print ( 'Error executing command:' ) #NEWLINE# print ( "\t '{0}'" . format ( cmd ) ) #NEWLINE# print ( 'Exception: {0}' . format ( e ) ) #NEWLINE# self . con . rollback ( )