mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-02-25 23:40:08 +08:00
Fixed post-processing output logging not returning anything if stdout is an empty string while stderr return the actual error.
This commit is contained in:
parent
d2bd0c7c7e
commit
fadda0ac40
1 changed files with 5 additions and 5 deletions
|
@ -28,11 +28,11 @@ def postprocessing(command, path):
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
logging.error('BAZARR Post-processing failed for file ' + path + ' : ' + repr(e))
|
logging.error('BAZARR Post-processing failed for file ' + path + ' : ' + repr(e))
|
||||||
else:
|
else:
|
||||||
if out == "":
|
if err:
|
||||||
logging.info(
|
|
||||||
'BAZARR Post-processing result for file ' + path + ' : Nothing returned from command execution')
|
|
||||||
elif err:
|
|
||||||
logging.error(
|
logging.error(
|
||||||
'BAZARR Post-processing result for file ' + path + ' : ' + err.replace('\n', ' ').replace('\r', ' '))
|
'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:
|
else:
|
||||||
logging.info('BAZARR Post-processing result for file ' + path + ' : ' + out)
|
logging.info('BAZARR Post-processing result for file ' + path + ' : ' + out)
|
||||||
|
|
Loading…
Reference in a new issue