Consolidate exception block

This commit is contained in:
Serene-Arc authored and Serene committed 2021-05-06 10:43:56 +10:00
1 parent fc5f4a0405
commit f6d89097f8
1 file changed
-4
@@ -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