def rollback(self):
        """
        Rolls back the database to last
        """

        try:
            shutil.copy2(self.db_path + "/BACKUP_codedict_db.DB", self.db_path + "/codedict_db.DB")
        except (shutil.Error, IOError, __HOLE__) as error:
            print "Error while rolling back database.\n", error
            sys.exit(1)
dataset/ETHPy150Open BastiPaeltz/codedict/source/database.py/Database.rollback