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

View File

@ -102,7 +102,7 @@ class Backup(object):
self.logger.debug('Running command: {0}'.format(' '.join(cmd))) self.logger.debug('Running command: {0}'.format(' '.join(cmd)))
if self.args['dryrun']: if self.args['dryrun']:
return() # no-op return() # no-op
if outfh: if stdoutfh:
_err = subprocess.run(cmd, stdout = stdoutfh, stderr = subprocess.PIPE).stderr.decode('utf-8').strip() _err = subprocess.run(cmd, stdout = stdoutfh, stderr = subprocess.PIPE).stderr.decode('utf-8').strip()
else: else:
with open(os.devnull, 'w') as DEVNULL: with open(os.devnull, 'w') as DEVNULL: