Consolidate exception block
This commit is contained in:
1 parent
fc5f4a0405
commit
f6d89097f8
1 file changed
-4
@@ -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