1
0
Fork 0
mirror of synced 2024-06-21 11:40:21 +12:00

Consolidate exception block

This commit is contained in:
Serene-Arc 2021-05-06 10:40:22 +10:00 committed by Serene
parent fc5f4a0405
commit f6d89097f8

View file

@ -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