aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-08-26 21:27:07 +0600
committerSergey M․ <dstftw@gmail.com>2015-08-26 21:27:07 +0600
commita882c5f4747c527bb50d87828ea4cceae6d12533 (patch)
tree5a8b188b588d203b6b19fec27667280180e7c472
parent61a7ff16222accdb259f771d0a6f0adb229b34dd (diff)
[udemy] Use raise_login_required
-rw-r--r--youtube_dl/extractor/udemy.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/youtube_dl/extractor/udemy.py b/youtube_dl/extractor/udemy.py
index 4a0eaf65f..365d8b4bf 100644
--- a/youtube_dl/extractor/udemy.py
+++ b/youtube_dl/extractor/udemy.py
@@ -70,9 +70,7 @@ class UdemyIE(InfoExtractor):
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')