[teachable] Fail with error message if no video URL found
[youtube-dl] / youtube_dl / extractor / teachable.py
index b82414c3df4de70e16727dae480522a132136020..6b7f13b437e3f3671b355b7dabcea9fd5056969e 100644 (file)
@@ -170,6 +170,7 @@ class TeachableIE(TeachableBaseIE):
                     r'class=["\'](?:inner-)?lesson-locked',
                     r'>LESSON LOCKED<')):
                 self.raise_login_required('Lecture contents locked')
+            raise ExtractorError('Unable to find video URL')
 
         title = self._og_search_title(webpage, default=None)