

def _run_undo_commands(self, filepath):
    'Run all commands in a file.'
    with open(filepath, 'rb') as csvfile:
        csvreader = csv.reader(csvfile)
        for command in reversed(list(csvreader)):
            try:
                le_util.run_script(command)
            except errors.SubprocessError:
                logger.error('Unable to run undo command: %s', ' '.join(command))

dataset/ETHPy150Open letsencrypt/letsencrypt/certbot/reverter.py Reverter._run_undo_commands/original