try / except

This commit is contained in:
Barbara Miller 2020-06-23 13:13:58 -07:00
parent 03594413f9
commit 99d03e2544

View File

@ -160,7 +160,13 @@ def _build_youtube_dl(worker, destdir, site):
# videos. We unroll that iterator here partly because
# otherwise `process_ie_result()` will clobber it, and we
# use it later to extract the watch pages as outlinks.
ie_result['entries_no_dl'] = list(ie_result['entries'])
try:
ie_result['entries_no_dl'] = list(ie_result['entries'])
except Exception as e:
self.logger.warning(
"failed to unroll ie_result['entries']? for %s, %s; exception {}",
ie.IE_NAME, url, e)
ie_result['entries_no_dl'] =[]
ie_result['entries'] = []
self.logger.info(
'not downloading %s media files from this '