diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2013-11-20 06:27:48 +0100 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2013-11-20 06:27:48 +0100 |
commit | f3682997d7a709e7cf74ba83773570d2a99beb12 (patch) | |
tree | 9e14e70dfea76583a593468c366b5bc818215af5 /youtube_dl/extractor/ted.py | |
parent | cc13cc0251b287ac88883096fcc36a8072e7ab5d (diff) | |
download | youtube-dl-f3682997d7a709e7cf74ba83773570d2a99beb12.zip youtube-dl-f3682997d7a709e7cf74ba83773570d2a99beb12.tar.gz youtube-dl-f3682997d7a709e7cf74ba83773570d2a99beb12.tar.bz2 |
Clean up unused imports and other minor mistakes
Diffstat (limited to 'youtube_dl/extractor/ted.py')
-rw-r--r-- | youtube_dl/extractor/ted.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/youtube_dl/extractor/ted.py b/youtube_dl/extractor/ted.py index 2e497c8..4bca62b 100644 --- a/youtube_dl/extractor/ted.py +++ b/youtube_dl/extractor/ted.py @@ -4,7 +4,6 @@ import re from .subtitles import SubtitlesInfoExtractor from ..utils import ( - compat_str, RegexNotFoundError, ) @@ -113,6 +112,6 @@ class TEDIE(SubtitlesInfoExtractor): url = 'http://www.ted.com/talks/subtitles/id/%s/lang/%s/format/srt' % (video_id, l) sub_lang_list[l] = url return sub_lang_list - except RegexNotFoundError as err: + except RegexNotFoundError: self._downloader.report_warning(u'video doesn\'t have subtitles') return {} |