about summary refs log tree commit diff
path: root/youtube_dl/extractor/lynda.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-08-26 21:25:53 +0600
committerSergey M․ <dstftw@gmail.com>2015-08-26 21:25:53 +0600
commit62984e4584c2962e622514c7d6a475636a8c21d8 (patch)
tree6608a910478d20255cba6d1daf13f51c19132c03 /youtube_dl/extractor/lynda.py
parent3c53455d15035a94bcd2bc915f565420e1a4279f (diff)
downloadyoutube-dl-62984e4584c2962e622514c7d6a475636a8c21d8.tar.gz
youtube-dl-62984e4584c2962e622514c7d6a475636a8c21d8.tar.xz
youtube-dl-62984e4584c2962e622514c7d6a475636a8c21d8.zip
[lynda] Use raise_login_required
Diffstat (limited to 'youtube_dl/extractor/lynda.py')
-rw-r--r--youtube_dl/extractor/lynda.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/youtube_dl/extractor/lynda.py b/youtube_dl/extractor/lynda.py
index 5b9157ed4..378117270 100644
--- a/youtube_dl/extractor/lynda.py
+++ b/youtube_dl/extractor/lynda.py
@@ -118,9 +118,7 @@ class LyndaIE(LyndaBaseIE):
                 'lynda returned error: %s' % video_json['Message'], expected=True)
 
         if video_json['HasAccess'] is False:
-            raise ExtractorError(
-                'Video %s is only available for members. '
-                % video_id + self._ACCOUNT_CREDENTIALS_HINT, expected=True)
+            self.raise_login_required('Video %s is only available for members' % video_id)
 
         video_id = compat_str(video_json['ID'])
         duration = video_json['DurationInSeconds']