def execute_catch(c, sql, vars=None):
    """Run a query, but ignore any errors. For error recovery paths where the error handler should not raise another."""
    try:
        c.execute(sql, vars)
    except Exception as err:
        cmd = sql.split(' ', 1)[0]
        log.error("Error executing %s: %s", cmd, err)
def execute_catch ( c , sql , vars = None ) : try : c . execute ( sql , vars ) except Exception as err : cmd = sql . split ( ' ' , 1 ) [ 0 ] log . error ( "Error executing %s: %s" , cmd , err )
Run a query, but ignore any errors. For error recovery paths where the error handler should not raise another.