diff options
author | Jesús <heckyel@hyperbola.info> | 2021-12-02 22:55:03 -0500 |
---|---|---|
committer | Jesús <heckyel@hyperbola.info> | 2021-12-02 22:55:03 -0500 |
commit | 409d6c8e3cfb4330f9a797eb5784b94c00fb4e35 (patch) | |
tree | d98bf2c149a55eca565987ee6fb1c14f271b5f72 /yt_dlp/extractor/common.py | |
parent | 7739b37f957b098d237179534d1b8c20597d55b6 (diff) | |
parent | d2b2fca53f635986918e364ee5b564d8e7d8af7e (diff) | |
download | hypervideo-pre-409d6c8e3cfb4330f9a797eb5784b94c00fb4e35.tar.lz hypervideo-pre-409d6c8e3cfb4330f9a797eb5784b94c00fb4e35.tar.xz hypervideo-pre-409d6c8e3cfb4330f9a797eb5784b94c00fb4e35.zip |
updated from upstream | 02/12/2021 at 22:55
Diffstat (limited to 'yt_dlp/extractor/common.py')
-rw-r--r-- | yt_dlp/extractor/common.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py index 597db63d1..2180f879c 100644 --- a/yt_dlp/extractor/common.py +++ b/yt_dlp/extractor/common.py @@ -3548,14 +3548,18 @@ class InfoExtractor(object): def extractor(): comments = [] + interrupted = True try: while True: comments.append(next(generator)) - except KeyboardInterrupt: - interrupted = True - self.to_screen('Interrupted by user') except StopIteration: interrupted = False + except KeyboardInterrupt: + self.to_screen('Interrupted by user') + except Exception as e: + if self.get_param('ignoreerrors') is not True: + raise + self._downloader.report_error(e) comment_count = len(comments) self.to_screen(f'Extracted {comment_count} comments') return { |