From 29f73a6c09c561aedd468f69e441e1a575cb756c Mon Sep 17 00:00:00 2001 From: Rato Date: Wed, 7 Apr 2021 14:36:34 +0200 Subject: [PATCH] Properly log error when Post processing subtitles --- bazarr/get_subtitle.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bazarr/get_subtitle.py b/bazarr/get_subtitle.py index 2f7bc0838..ac90d6568 100644 --- a/bazarr/get_subtitle.py +++ b/bazarr/get_subtitle.py @@ -1430,6 +1430,9 @@ def postprocessing(command, path): if out == "": logging.info( 'BAZARR Post-processing result for file ' + path + ' : Nothing returned from command execution') + elif err: + logging.error( + 'BAZARR Post-processing result for file ' + path + ' : ' + err.replace('\n', ' ').replace('\r', ' ')) else: logging.info('BAZARR Post-processing result for file ' + path + ' : ' + out)