File tree Expand file tree Collapse file tree 2 files changed +395
-215
lines changed
Expand file tree Collapse file tree 2 files changed +395
-215
lines changed Original file line number Diff line number Diff line change @@ -1141,7 +1141,9 @@ def _monitor_process(
11411141 elif stdout_destination == "file" and output_stderr :
11421142 _stdout .write (output_stderr .encode (encoding , errors = errors ))
11431143
1144- logger .debug ('Command "{}" returned with exit code "{}"' .format (command , exit_code ))
1144+ logger .debug (
1145+ 'Command "{}" returned with exit code "{}"' .format (command , exit_code )
1146+ )
11451147 except subprocess .CalledProcessError as exc :
11461148 exit_code = exc .returncode
11471149 try :
@@ -1257,7 +1259,11 @@ def _monitor_process(
12571259 if stderr_destination not in ["stdout" , None ]:
12581260 stderr_output = to_encoding (output_stderr , error_encoding , errors )
12591261 if stderr_output and not silent :
1260- if exit_code == 0 or (valid_exit_codes and valid_exit_codes is True or exit_code in valid_exit_codes ):
1262+ if exit_code == 0 or (
1263+ valid_exit_codes
1264+ and valid_exit_codes is True
1265+ or exit_code in valid_exit_codes
1266+ ):
12611267 logger .debug ("STDERR: " + stderr_output )
12621268 else :
12631269 logger .error ("STDERR: " + stderr_output )
You can’t perform that action at this time.
0 commit comments