From 3da0445dc31657f3eaa699db8aa9423ebfe2c5a6 Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Sat, 18 Nov 2023 09:07:44 -0500 Subject: [PATCH] no log: improved notification and logging on invalid subtitles --- bazarr/subtitles/manual.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bazarr/subtitles/manual.py b/bazarr/subtitles/manual.py index 05dbaba8a..3b0a6ad3e 100644 --- a/bazarr/subtitles/manual.py +++ b/bazarr/subtitles/manual.py @@ -189,8 +189,8 @@ def manual_download_subtitle(path, audio_language, hi, forced, subtitle, provide return 'Error downloading Subtitles' else: if not subtitle.is_valid(): - logging.exception(f'BAZARR No valid Subtitles file found for this file: {path}') - return 'No valid Subtitles file found' + logging.error(f"BAZARR Downloaded subtitles isn't valid for this file: {path}") + return "Downloaded subtitles isn't valid. Check log." try: chmod = int(settings.general.chmod, 8) if not sys.platform.startswith( 'win') and settings.general.chmod_enabled else None