youtubedl_fallback.py: add a fallback exception and log messages

This commit is contained in:
Ali Parlakci
2021-05-05 16:56:34 +03:00
parent 00defe3b87
commit e642ad68d4

View File

@@ -37,4 +37,8 @@ class YoutubeDlFallback(BaseFallbackDownloader, Youtube):
except youtube_dl.DownloadError as e: except youtube_dl.DownloadError as e:
logger.debug("Submission cannot be downloaded using the youtube-dl fallback downloader") logger.debug("Submission cannot be downloaded using the youtube-dl fallback downloader")
return False return False
except Exception as e:
logger.error("Youtube-DL quitted unexpectedly.")
logger.exception(e)
return False
return False return False