aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2019-12-27 00:26:12 +0700
committerSergey M․ <dstftw@gmail.com>2019-12-27 00:26:12 +0700
commit941e359e9512c1c75d42cb5b4b248816e16edb82 (patch)
tree1e68945086be8069fe1aa220e8882642a2d2ce58 /youtube_dl
parentf8a12427a9ccdb8506be64c2b56eee7f8872ac3f (diff)
[teachable] Fail with error message if no video URL found
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/teachable.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/youtube_dl/extractor/teachable.py b/youtube_dl/extractor/teachable.py
index b82414c3d..6b7f13b43 100644
--- a/youtube_dl/extractor/teachable.py
+++ b/youtube_dl/extractor/teachable.py
@@ -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)