better error messages for failed index, #858

This commit is contained in:
Simon
2025-01-24 21:31:59 +07:00
parent bde706cc5e
commit a8336ed04d
3 changed files with 10 additions and 3 deletions

View File

@@ -407,8 +407,11 @@ class ManualImport:
media_path=self.current_video["media"],
)
if not video.json_data:
print(f"{video_id}: manual import failed, and no metadata found.")
raise ValueError
message = (
f"{video_id}: manual import failed, and no metadata found."
)
print(message)
raise ValueError(message)
video.check_subtitles(subtitle_files=self.current_video["subtitle"])
video.upload_to_es()