diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-10-26 20:17:29 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-10-26 20:27:09 +0530 |
commit | 0db3bae879d57ff400f8c61261534b6e3659c470 (patch) | |
tree | 2fbda9b3c42092857854dd08c5d931ce01f52b2d /yt_dlp/utils.py | |
parent | 48f796874d78ad3d1849d0639893667f6cdf30d2 (diff) | |
download | hypervideo-pre-0db3bae879d57ff400f8c61261534b6e3659c470.tar.lz hypervideo-pre-0db3bae879d57ff400f8c61261534b6e3659c470.tar.xz hypervideo-pre-0db3bae879d57ff400f8c61261534b6e3659c470.zip |
[extractor] Fix some errors being converted to `ExtractorError`
Diffstat (limited to 'yt_dlp/utils.py')
-rw-r--r-- | yt_dlp/utils.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/yt_dlp/utils.py b/yt_dlp/utils.py index a8755a1b9..48baa6503 100644 --- a/yt_dlp/utils.py +++ b/yt_dlp/utils.py @@ -2492,9 +2492,9 @@ class GeoRestrictedError(ExtractorError): geographic location due to geographic restrictions imposed by a website. """ - def __init__(self, msg, countries=None): - super(GeoRestrictedError, self).__init__(msg, expected=True) - self.msg = msg + def __init__(self, msg, countries=None, **kwargs): + kwargs['expected'] = True + super(GeoRestrictedError, self).__init__(msg, **kwargs) self.countries = countries |