aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/common.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-03-04 19:37:43 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-03-04 19:37:43 +0530
commit7265a2190c46b7312669d613898055c2b080d26e (patch)
tree8fc15714faab946b6c3ef71ef5afd24b073c009e /yt_dlp/extractor/common.py
parent3a4bb9f75134a8b9055612e50464f6e42f7386c8 (diff)
downloadhypervideo-pre-7265a2190c46b7312669d613898055c2b080d26e.tar.lz
hypervideo-pre-7265a2190c46b7312669d613898055c2b080d26e.tar.xz
hypervideo-pre-7265a2190c46b7312669d613898055c2b080d26e.zip
Fix doubling of `video_id` in `ExtractorError`
Diffstat (limited to 'yt_dlp/extractor/common.py')
-rw-r--r--yt_dlp/extractor/common.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/yt_dlp/extractor/common.py b/yt_dlp/extractor/common.py
index 53b21ece6..6c1fe55f8 100644
--- a/yt_dlp/extractor/common.py
+++ b/yt_dlp/extractor/common.py
@@ -639,7 +639,7 @@ class InfoExtractor(object):
}
if hasattr(e, 'countries'):
kwargs['countries'] = e.countries
- raise type(e)(e.msg, **kwargs)
+ raise type(e)(e.orig_msg, **kwargs)
except compat_http_client.IncompleteRead as e:
raise ExtractorError('A network error has occurred.', cause=e, expected=True, video_id=self.get_temp_id(url))
except (KeyError, StopIteration) as e:
@@ -1101,6 +1101,7 @@ class InfoExtractor(object):
if metadata_available and (
self.get_param('ignore_no_formats_error') or self.get_param('wait_for_video')):
self.report_warning(msg)
+ return
if method is not None:
msg = '%s. %s' % (msg, self._LOGIN_HINTS[method])
raise ExtractorError(msg, expected=True)