Consolidate exception block
This commit is contained in:
parent
fc5f4a0405
commit
f6d89097f8
1 changed files with 0 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue