Consolidate exception block
This commit is contained in:
@@ -34,11 +34,7 @@ class YoutubeDlFallback(BaseFallbackDownloader, Youtube):
|
|||||||
result = ydl.extract_info(url, download=False)
|
result = ydl.extract_info(url, download=False)
|
||||||
if result:
|
if result:
|
||||||
return True
|
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:
|
except Exception as e:
|
||||||
logger.error("Youtube-DL quitted unexpectedly.")
|
|
||||||
logger.exception(e)
|
logger.exception(e)
|
||||||
return False
|
return False
|
||||||
return False
|
return False
|
||||||
|
|||||||
Reference in New Issue
Block a user