[pluralsight] Use raise_login_required
authorSergey M․ <dstftw@gmail.com>
Wed, 26 Aug 2015 15:26:09 +0000 (21:26 +0600)
committerSergey M․ <dstftw@gmail.com>
Wed, 26 Aug 2015 15:26:09 +0000 (21:26 +0600)
youtube_dl/extractor/pluralsight.py

index 7ba396aef319db37b5f7868721aa33e38ede323e..fd32836ccaf61b171f9dcafbbfce24c7764b18c1 100644 (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')