def is_disconnect(self, e, connection, cursor):
        return isinstance(e, self.dbapi.ProgrammingError) and \
            str(e) in "Cannot operate on a closed database."
dataset/ETHPy150Open RoseOu/flasky/venv/lib/python2.7/site-packages/sqlalchemy/dialects/sqlite/pysqlite.py/SQLiteDialect_pysqlite.is_disconnect/swapped operands of `in`