some day my prince(ss) will come.

and by that i mean i'll stop making typos.
This commit is contained in:
brent s 2017-10-25 03:24:22 -04:00
parent 58736f7f95
commit a8914da258
1 changed files with 1 additions and 1 deletions

View File

@ -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: