[executor/common] fixed load json error, (closes #23159)

This commit is contained in:
senaps 2020-07-24 06:09:47 +04:30
parent a115e07594
commit ec0fc33117

View File

@ -903,6 +903,12 @@ class InfoExtractor(object):
raise ExtractorError(errmsg, cause=ve)
else:
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):
idstr = '' if video_id is None else '%s: ' % video_id