def is_disconnect(self, e, connection, cursor):
        return "connection is closed" in str(e)
dataset/ETHPy150Open RoseOu/flasky/venv/lib/python2.7/site-packages/sqlalchemy/dialects/postgresql/pypostgresql.py/PGDialect_pypostgresql.is_disconnect/original