mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-09 12:42:28 +01:00
[pluralsight] Use raise_login_required
This commit is contained in:
parent
62984e4584
commit
e7ddaef5bd
@ -41,9 +41,7 @@ def _real_initialize(self):
|
|||||||
def _login(self):
|
def _login(self):
|
||||||
(username, password) = self._get_login_info()
|
(username, password) = self._get_login_info()
|
||||||
if username is None:
|
if username is None:
|
||||||
raise ExtractorError(
|
self.raise_login_required('Pluralsight account is required')
|
||||||
'Pluralsight account is required, use --username and --password options to provide account credentials.',
|
|
||||||
expected=True)
|
|
||||||
|
|
||||||
login_page = self._download_webpage(
|
login_page = self._download_webpage(
|
||||||
self._LOGIN_URL, None, 'Downloading login page')
|
self._LOGIN_URL, None, 'Downloading login page')
|
||||||
|
Loading…
Reference in New Issue
Block a user