def mongo_disconnect(self):
        if self.mongo:
            try:
                self.mongo.disconnect()
            except Exception as ex:
                self.log.error('Error disconnecting mongo: %s', ex)
        self.mongoavailable = False
        self.mongo = None
        self.app.mongodb = None
Take a single step
dataset/ETHPy150Open erkyrath/tworld/lib/tweblib/servers.py/ServerMgr.mongo_disconnect--crossover with--dataset/ETHPy150Open tuturto/pyherc/src/pyherc/test/cutesy/dictionary.py/take_random_step