rssVideos: Slightly better error handling

Makes it actually quit on Ctrl+C
This commit is contained in:
Geoffrey Frogeye 2021-12-12 14:52:21 +01:00
parent 6a6f5401e6
commit 7f0e24a29d
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8
2 changed files with 5 additions and 5 deletions

View file

@ -1,3 +1,4 @@
coloredlogs>=10.0<11
progressbar2>=3.47.0<4
youtube-dl>=2021.6.6
yt-dlp>=2021.10.22
ConfigArgParse>=1.5<2

View file

@ -8,9 +8,6 @@ The common use case would be a feed from an RSS aggregator
with the unread items (non-video links are ignored).
"""
# TODO Distribute this correclty, in the meanwhile please do
# pip install --user coloredlogs ConfigArgParse yt-dlp
import enum
import functools
import logging
@ -118,7 +115,9 @@ class RVElement:
log.info(f"Researching: {self}")
try:
infos = self.parent.ytdl_dry.extract_info(self.link)
except BaseException as e:
except KeyboardInterrupt as e:
raise e
except youtube_dl.utils.DownloadError as e:
# TODO Still raise in case of temporary network issue
log.warn(e)
infos = None