diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-08-26 21:26:09 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-08-26 21:26:09 +0600 |
commit | e7ddaef5bd209dd8d24b0025631cde1f5969e71d (patch) | |
tree | 0a51b8eca960b495ce453da9e26a38d36dea954e /youtube_dl/extractor/pluralsight.py | |
parent | 62984e4584c2962e622514c7d6a475636a8c21d8 (diff) |
[pluralsight] Use raise_login_required
Diffstat (limited to 'youtube_dl/extractor/pluralsight.py')
-rw-r--r-- | youtube_dl/extractor/pluralsight.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/youtube_dl/extractor/pluralsight.py b/youtube_dl/extractor/pluralsight.py index 7ba396aef..fd32836cc 100644 --- a/youtube_dl/extractor/pluralsight.py +++ b/youtube_dl/extractor/pluralsight.py @@ -41,9 +41,7 @@ class PluralsightIE(InfoExtractor): def _login(self): (username, password) = self._get_login_info() if username is None: - raise ExtractorError( - 'Pluralsight account is required, use --username and --password options to provide account credentials.', - expected=True) + self.raise_login_required('Pluralsight account is required') login_page = self._download_webpage( self._LOGIN_URL, None, 'Downloading login page') |