1
0
Fork 0

[extractor] Fix some errors being converted to ExtractorError

This commit is contained in:
pukkandan 2021-10-26 20:17:29 +05:30
commit 0db3bae879
No known key found for this signature in database
GPG key ID: 0F00D95A001F4698
2 changed files with 16 additions and 6 deletions

View file

@ -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