浏览代码

[dtube] PEP 8 (#17455)

Sergey M․ 7 年之前
父节点
当前提交
6f9f3340bb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      youtube_dl/extractor/dtube.py

+ 1 - 1
youtube_dl/extractor/dtube.py

@@ -59,7 +59,7 @@ class DTubeIE(InfoExtractor):
             try:
             try:
                 self.to_screen('%s: Checking %s video format URL' % (video_id, format_id))
                 self.to_screen('%s: Checking %s video format URL' % (video_id, format_id))
                 self._downloader._opener.open(video_url, timeout=5).close()
                 self._downloader._opener.open(video_url, timeout=5).close()
-            except timeout as e:
+            except timeout:
                 self.to_screen(
                 self.to_screen(
                     '%s: %s URL is invalid, skipping' % (video_id, format_id))
                     '%s: %s URL is invalid, skipping' % (video_id, format_id))
                 continue
                 continue