summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2023-01-13 07:31:28 -0500
committermorpheus65535 <[email protected]>2023-01-13 07:31:28 -0500
commitfadda0ac4087b3c31ae8524b14249cdda24d7680 (patch)
tree76c0a7f293903a361aa58605de1eefe304143734
parentd2bd0c7c7e559bf9742ed2ebb4944e3913970caa (diff)
downloadbazarr-fadda0ac4087b3c31ae8524b14249cdda24d7680.tar.gz
bazarr-fadda0ac4087b3c31ae8524b14249cdda24d7680.zip
Fixed post-processing output logging not returning anything if stdout is an empty string while stderr return the actual error.
-rw-r--r--bazarr/subtitles/post_processing.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/bazarr/subtitles/post_processing.py b/bazarr/subtitles/post_processing.py
index 75406d417..336bb67e4 100644
--- a/bazarr/subtitles/post_processing.py
+++ b/bazarr/subtitles/post_processing.py
@@ -28,11 +28,11 @@ def postprocessing(command, path):
except Exception as e:
logging.error('BAZARR Post-processing failed for file ' + path + ' : ' + repr(e))
else:
- if out == "":
- logging.info(
- 'BAZARR Post-processing result for file ' + path + ' : Nothing returned from command execution')
- elif err:
+ if err:
logging.error(
'BAZARR Post-processing result for file ' + path + ' : ' + err.replace('\n', ' ').replace('\r', ' '))
+ elif out == "":
+ logging.info(
+ 'BAZARR Post-processing result for file ' + path + ' : Nothing returned from command execution')
else:
- logging.info('BAZARR Post-processing result for file ' + path + ' : ' + out)
+ logging.info('BAZARR Post-processing result for file ' + path + ' : ' + out)