From 79c0826b0b9c25f51f6904259f304598c68d73fa Mon Sep 17 00:00:00 2001 From: jxxghp Date: Thu, 24 Sep 2026 08:18:34 +0800 Subject: [PATCH] Handle missing subtitle file paths safely --- app/chain/download/subtitle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/chain/download/subtitle.py b/app/chain/download/subtitle.py index 034f23194..149800e8d 100644 --- a/app/chain/download/subtitle.py +++ b/app/chain/download/subtitle.py @@ -203,7 +203,7 @@ def _enqueue_completed_site_subtitles( item for item in storage_chain.list_files(working_dir_item, recursion=False) or [] if item.type == "file" - and is_subtitle_file(item.name or Path(item.path).name) + and is_subtitle_file(item.name or Path(item.path or "").name) ] except Exception as err: logger.error(f"读取已整理下载目录中的字幕文件失败:{err}")