aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'yt_dlp/utils.py')
-rw-r--r--yt_dlp/utils.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/yt_dlp/utils.py b/yt_dlp/utils.py
index f522c2102..ca39e96ac 100644
--- a/yt_dlp/utils.py
+++ b/yt_dlp/utils.py
@@ -1072,6 +1072,14 @@ class GeoRestrictedError(ExtractorError):
self.countries = countries
+class UserNotLive(ExtractorError):
+ """Error when a channel/user is not live"""
+
+ def __init__(self, msg=None, **kwargs):
+ kwargs['expected'] = True
+ super().__init__(msg or 'The channel is not currently live', **kwargs)
+
+
class DownloadError(YoutubeDLError):
"""Download Error exception.