From: Sergey M․ Date: Wed, 26 Aug 2015 15:25:53 +0000 (+0600) Subject: [lynda] Use raise_login_required X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=62984e4584c2962e622514c7d6a475636a8c21d8;p=youtube-dl [lynda] Use raise_login_required --- 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']