From a8914da2589aee39a3362e6d3ece00439c6346b9 Mon Sep 17 00:00:00 2001 From: brent s Date: Wed, 25 Oct 2017 03:24:22 -0400 Subject: [PATCH] some day my prince(ss) will come. and by that i mean i'll stop making typos. --- storage/backups/borg/backup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/storage/backups/borg/backup.py b/storage/backups/borg/backup.py index 79c1d8a..4154f6a 100755 --- a/storage/backups/borg/backup.py +++ b/storage/backups/borg/backup.py @@ -102,7 +102,7 @@ class Backup(object): self.logger.debug('Running command: {0}'.format(' '.join(cmd))) if self.args['dryrun']: return() # no-op - if outfh: + if stdoutfh: _err = subprocess.run(cmd, stdout = stdoutfh, stderr = subprocess.PIPE).stderr.decode('utf-8').strip() else: with open(os.devnull, 'w') as DEVNULL: