From 426b81f794b0cdccafd9a7802a5a618fc6e6590e Mon Sep 17 00:00:00 2001 From: desbma Date: Sat, 5 May 2018 21:13:32 +0200 Subject: [PATCH] Fix youtube_dl.utils.DownloadError being fatal --- amg/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/amg/__init__.py b/amg/__init__.py index ae258df..fc03e4c 100755 --- a/amg/__init__.py +++ b/amg/__init__.py @@ -348,7 +348,8 @@ def download_audio(review, track_urls): with youtube_dl.YoutubeDL(ydl_opts) as ydl: ydl.download(track_urls) except youtube_dl.utils.DownloadError as e: - raise e + #raise e + # TODO catch timeout and retry # already logged # logging.getLogger().warning("Download error : %s" % (e)) pass