Properly log error when Post processing subtitles

This commit is contained in:
Rato 2021-04-07 14:36:34 +02:00 committed by GitHub
parent 4f540e6f90
commit 29f73a6c09
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)