def get_db_results(self, db, query):
        cursor = db.cursor()
        try:
            cursor.execute(query)
            results = float(cursor.fetchone()[1])
        except __HOLE__:
            cursor.execute(query)
            results = cursor.fetchone()[1]
        return results
dataset/ETHPy150Open serverdensity/sd-agent-plugins/MySQL/MySQL.py/MySQL.get_db_results