浏览代码

[redtube] Simplify

Philipp Hagemeister 12 年之前
父节点
当前提交
d26d440e19
共有 1 个文件被更改,包括 0 次插入5 次删除
  1. 0 5
      youtube_dl/extractor/redtube.py

+ 0 - 5
youtube_dl/extractor/redtube.py

@@ -1,9 +1,6 @@
 import re
 
 from .common import InfoExtractor
-from ..utils import (
-    ExtractorError,
-)
 
 
 class RedTubeIE(InfoExtractor):
@@ -11,8 +8,6 @@ class RedTubeIE(InfoExtractor):
 
     def _real_extract(self,url):
         mobj = re.match(self._VALID_URL, url)
-        if mobj is None:
-            raise ExtractorError(u'Invalid URL: %s' % url)
 
         video_id = mobj.group('id')
         video_extension = 'mp4'