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: