[executor/common] fixed load json error, (closes #23159)
This commit is contained in:
parent
a115e07594
commit
ec0fc33117
@ -903,6 +903,12 @@ class InfoExtractor(object):
|
|||||||
raise ExtractorError(errmsg, cause=ve)
|
raise ExtractorError(errmsg, cause=ve)
|
||||||
else:
|
else:
|
||||||
self.report_warning(errmsg + str(ve))
|
self.report_warning(errmsg + str(ve))
|
||||||
|
except TypeError as ve:
|
||||||
|
errmsg = '%s: Failed to download due to geo location restrictions' % video_id
|
||||||
|
if fatal:
|
||||||
|
raise ExtractorErro(errmsg, cause=ve)
|
||||||
|
else:
|
||||||
|
self.report_warning(errmsg + str(ve))
|
||||||
|
|
||||||
def report_warning(self, msg, video_id=None):
|
def report_warning(self, msg, video_id=None):
|
||||||
idstr = '' if video_id is None else '%s: ' % video_id
|
idstr = '' if video_id is None else '%s: ' % video_id
|
||||||
|
Loading…
x
Reference in New Issue
Block a user