From 3ef35a9d531106b2d7cf11120e28e9c6c8bf2d3e Mon Sep 17 00:00:00 2001 From: simon Date: Sat, 5 Feb 2022 09:30:34 +0700 Subject: [PATCH] raise FileNotFoundError to catch for reindex --- tubearchivist/home/src/index/video.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tubearchivist/home/src/index/video.py b/tubearchivist/home/src/index/video.py index b88196a..612af90 100644 --- a/tubearchivist/home/src/index/video.py +++ b/tubearchivist/home/src/index/video.py @@ -174,7 +174,7 @@ class YoutubeVideo(YouTubeItem, YoutubeSubtitle): vid_path = os.path.join(cache_path, file_cached) return vid_path - return False + raise FileNotFoundError def add_player(self): """add player information for new videos"""