diff options
author | vitiko98 <[email protected]> | 2021-10-04 21:59:14 -0400 |
---|---|---|
committer | vitiko98 <[email protected]> | 2021-10-04 21:59:14 -0400 |
commit | 385461d28cd6c9c7838b2f7fda5ca601a89f7c83 (patch) | |
tree | 7c7793d5a7bcf8acf619fff4f92f08587624fe4e | |
parent | 036600f15061653ce04a6b16493a14bb71e028a5 (diff) | |
download | bazarr-385461d28cd6c9c7838b2f7fda5ca601a89f7c83.tar.gz bazarr-385461d28cd6c9c7838b2f7fda5ca601a89f7c83.zip |
Make debug call more verbosev0.9.10-beta.9
-rw-r--r-- | bazarr/list_subtitles.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/bazarr/list_subtitles.py b/bazarr/list_subtitles.py index e18ef0d1a..8f6bbb11d 100644 --- a/bazarr/list_subtitles.py +++ b/bazarr/list_subtitles.py @@ -59,13 +59,11 @@ def store_subtitles(original_path, reversed_path, use_cache=True): lang = lang + ":hi" logging.debug("BAZARR embedded subtitles detected: " + lang) actual_subtitles.append([lang, None]) - except: - logging.debug("BAZARR unable to index this unrecognized language: " + subtitle_language) - pass + except Exception as error: + logging.debug("BAZARR unable to index this unrecognized language: %s (%s)", subtitle_language, error) except Exception as e: logging.exception( "BAZARR error when trying to analyze this %s file: %s" % (os.path.splitext(reversed_path)[1], reversed_path)) - pass try: dest_folder = get_subtitle_destination_folder() core.CUSTOM_PATHS = [dest_folder] if dest_folder else [] |