From f6d89097f8ac5cfcf9c1908fe24352b56a1b0dd9 Mon Sep 17 00:00:00 2001 From: Serene-Arc Date: Thu, 6 May 2021 10:40:22 +1000 Subject: [PATCH] Consolidate exception block --- .../fallback_downloaders/youtubedl_fallback.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/bdfr/site_downloaders/fallback_downloaders/youtubedl_fallback.py b/bdfr/site_downloaders/fallback_downloaders/youtubedl_fallback.py index 8facda6..281182a 100644 --- a/bdfr/site_downloaders/fallback_downloaders/youtubedl_fallback.py +++ b/bdfr/site_downloaders/fallback_downloaders/youtubedl_fallback.py @@ -34,11 +34,7 @@ class YoutubeDlFallback(BaseFallbackDownloader, Youtube): result = ydl.extract_info(url, download=False) if result: return True - except youtube_dl.DownloadError as e: - logger.debug("Submission cannot be downloaded using the youtube-dl fallback downloader") - return False except Exception as e: - logger.error("Youtube-DL quitted unexpectedly.") logger.exception(e) return False return False