diff options
author | Sergey M․ <dstftw@gmail.com> | 2020-11-18 23:31:35 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2020-11-18 23:31:35 +0700 |
commit | c7178f0f7af1d12cdaca5d1328adba5300c7436a (patch) | |
tree | 9523e1e4422757182a4ecb10a106504e07d4ad42 /youtube_dl/extractor | |
parent | 5c3f7014efe75ae4c4e1c8aa18a062b8442c917a (diff) | |
download | youtube-dl-c7178f0f7af1d12cdaca5d1328adba5300c7436a.tar.xz |
[extractor/common] Output error for invalid URLs in _is_valid_url (refs #21400, refs #24151, refs #25617, refs #25618, refs #25586, refs #26068, refs #27072)
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/common.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py index 021945a89..0c9089674 100644 --- a/youtube_dl/extractor/common.py +++ b/youtube_dl/extractor/common.py @@ -1456,9 +1456,10 @@ class InfoExtractor(object): try: self._request_webpage(url, video_id, 'Checking %s URL' % item, headers=headers) return True - except ExtractorError: + except ExtractorError as e: self.to_screen( - '%s: %s URL is invalid, skipping' % (video_id, item)) + '%s: %s URL is invalid, skipping: %s' + % (video_id, item, error_to_compat_str(e.cause))) return False def http_scheme(self): |