mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-10 00:25:06 +00:00
[udemy] Use raise_login_required
This commit is contained in:
parent
61a7ff1622
commit
a882c5f474
1 changed files with 1 additions and 3 deletions
|
@ -70,9 +70,7 @@ def _real_initialize(self):
|
|||
def _login(self):
|
||||
(username, password) = self._get_login_info()
|
||||
if username is None:
|
||||
raise ExtractorError(
|
||||
'Udemy account is required, use --username and --password options to provide account credentials.',
|
||||
expected=True)
|
||||
self.raise_login_required('Udemy account is required')
|
||||
|
||||
login_popup = self._download_webpage(
|
||||
self._LOGIN_URL, None, 'Downloading login popup')
|
||||
|
|
Loading…
Reference in a new issue