Ignore a single error when we do the download
- ID
77e00da- date
2024-02-15 21:31:08+00:00- author
Alex Chan <alex@alexwlchan.net>- parent
acbc12f- message
Ignore a single error when we do the download- changed files
1 file, 4 additions, 1 deletion
Changed files
web/save_youtube_videos.py (4222) → web/save_youtube_videos.py (4282)
diff --git a/web/save_youtube_videos.py b/web/save_youtube_videos.py
index 90d36e1..c795e64 100755
--- a/web/save_youtube_videos.py
+++ b/web/save_youtube_videos.py
@@ -151,4 +151,7 @@ def download_video(*, video_id, download_root):
if __name__ == "__main__":
for url in sys.argv[1:]:
video_id = get_video_id(url)
- download_video(video_id=video_id, download_root=BACKUP_ROOT)
+ try:
+ download_video(video_id=video_id, download_root=BACKUP_ROOT)
+ except Exception:
+ pass