[extractor/common] Output error for invalid URLs in _is_valid_url (refs #21400, refs...
authorSergey M․ <dstftw@gmail.com>
Wed, 18 Nov 2020 16:31:35 +0000 (23:31 +0700)
committerSergey M․ <dstftw@gmail.com>
Wed, 18 Nov 2020 16:31:35 +0000 (23:31 +0700)
youtube_dl/extractor/common.py

index 021945a89e16c80262728a4a9a400674735389a7..0c9089674f78fd705b34d60b57b9bf282935b2e1 100644 (file)
@@ -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):