Make debug call more verbose

pull/1573/head v0.9.10-beta.9
vitiko98 3 years ago
parent 036600f150
commit 385461d28c

@ -59,13 +59,11 @@ def store_subtitles(original_path, reversed_path, use_cache=True):
lang = lang + ":hi" lang = lang + ":hi"
logging.debug("BAZARR embedded subtitles detected: " + lang) logging.debug("BAZARR embedded subtitles detected: " + lang)
actual_subtitles.append([lang, None]) actual_subtitles.append([lang, None])
except: except Exception as error:
logging.debug("BAZARR unable to index this unrecognized language: " + subtitle_language) logging.debug("BAZARR unable to index this unrecognized language: %s (%s)", subtitle_language, error)
pass
except Exception as e: except Exception as e:
logging.exception( logging.exception(
"BAZARR error when trying to analyze this %s file: %s" % (os.path.splitext(reversed_path)[1], reversed_path)) "BAZARR error when trying to analyze this %s file: %s" % (os.path.splitext(reversed_path)[1], reversed_path))
pass
try: try:
dest_folder = get_subtitle_destination_folder() dest_folder = get_subtitle_destination_folder()
core.CUSTOM_PATHS = [dest_folder] if dest_folder else [] core.CUSTOM_PATHS = [dest_folder] if dest_folder else []

Loading…
Cancel
Save