some day my prince(ss) will come.
and by that i mean i'll stop making typos.
This commit is contained in:
parent
58736f7f95
commit
a8914da258
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user