Do not except any raised error

This commit is contained in:
Marty Oehme 2025-01-18 14:34:21 +01:00
parent 4df67bd475
commit d6bc9e6728
Signed by: Marty
GPG key ID: EDBF2ED917B2EF6A

View file

@ -33,7 +33,6 @@ def grab_subtitles(url: str | Path) -> Path:
import yt_dlp
temp_dir = get_temp_dir()
try:
ydl_opts = {
"outtmpl": f"{temp_dir}/subs",
"writeautomaticsub": True,
@ -53,9 +52,6 @@ def grab_subtitles(url: str | Path) -> Path:
raise ValueError("No correct json3 transcript object found.")
except ValueError as e:
print(e)
def get_temp_dir() -> str:
# Create a temporary directory