diff --git a/youtube_dl/extractor/udemy.py b/youtube_dl/extractor/udemy.py index 9d31a3f5bb..e743c0262c 100644 --- a/youtube_dl/extractor/udemy.py +++ b/youtube_dl/extractor/udemy.py @@ -72,7 +72,7 @@ def _real_initialize(self): def _login(self): (username, password) = self._get_login_info() if username is None: - self.raise_login_required('Udemy account is required') + return login_popup = self._download_webpage( self._LOGIN_URL, None, 'Downloading login popup')