From 635b865b2a59639e4df8f6b06f1316b26365ea50 Mon Sep 17 00:00:00 2001 From: Roberto Santalla Date: Wed, 22 Apr 2020 18:02:03 +0200 Subject: [PATCH] logging: show file error reason in log In case of an error occurs while saving subtitles, the cause for the error should be printed to the log file. Otherwise it becomes difficult to debug it. --- bazarr/get_subtitle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bazarr/get_subtitle.py b/bazarr/get_subtitle.py index 232d62858..32c9610e4 100644 --- a/bazarr/get_subtitle.py +++ b/bazarr/get_subtitle.py @@ -207,7 +207,7 @@ def download_subtitle(path, language, audio_language, hi, forced, providers, pro path_decoder=force_unicode ) except Exception as e: - logging.exception('BAZARR Error saving Subtitles file to disk for this file:' + path) + logging.exception('BAZARR Error saving Subtitles file to disk for this file:' + path + ': ' + repr(e)) pass else: saved_any = True