[extractor/common] Output error for invalid URLs in _is_valid_url (re…

…fs #21400, refs #24151, refs #25617, refs #25618, refs #25586, refs #26068, refs #27072)
This commit is contained in:
=?UTF-8?q?Sergey=20M=E2=80=A4?= 2021-02-26 14:13:00 +01:00 committed by Laura Liberda
parent 9a4014d394
commit e2b997d3bf

View file

@ -1474,9 +1474,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):