We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a7f0fe commit 7c226caCopy full SHA for 7c226ca
executor/engine/job/base.py
@@ -256,8 +256,8 @@ def process_func(self):
256
change the dir, redirect the stdout and stderr
257
before the actual run."""
258
cache_dir = self.cache_dir.resolve()
259
- if (self.redirect_out_err is not False) and \
260
- (not isinstance(self.func, CaptureOut)):
+ is_redirect = (self.redirect_out_err is not False)
+ if is_redirect and (not isinstance(self.func, CaptureOut)):
261
if isinstance(self.redirect_out_err, str):
262
path_stdout = Path(self.redirect_out_err)
263
path_stderr = Path(self.redirect_out_err)
0 commit comments