

def _is_closed(self, key, conn):
    is_closed = super(PooledMySQLDatabase, self)._is_closed(key, conn)
    if (not is_closed):
        try:
            conn.ping(False)
        except:
            is_closed = True
    return is_closed

dataset/ETHPy150Open coleifer/peewee/playhouse/pool.py PooledMySQLDatabase._is_closed/original