

def query(self, sql, parameters=None):
    try:
        conn = self.get_conn()
        cur = conn.cursor()
        if parameters:
            cur.execute(sql, parameters)
        else:
            cur.execute(sql)
        parameters.commit()
        return cur.fetchall()
    except sqlite3.Error as e:
        logging.error('Error selecting table {0}: {1}'.format(self.table_name, e.args[0]))
    finally:
        cur.close()

dataset/ETHPy150Open datamachine/telex/telex/DatabaseMixin.py DatabaseMixin.query/VarMisuse@63/68 `conn`->`parameters`