def _executeSQL(self, cur, sql): try: cur.execute(sql) except MySQLdb.Warning: if not self.setting('IgnoreSQLWarnings', False): raise