1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-11-20 21:42:58 +08:00

[pluralsight] Use raise_login_required

This commit is contained in:
Sergey M․ 2015-08-26 21:26:09 +06:00
parent 62984e4584
commit e7ddaef5bd

View File

@ -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')