avoid "AttributeError: 'ExtractorError' object has no attribute 'code'" checking for 430 (soft limit) from youtube-dl

This commit is contained in:
Noah Levitt 2016-06-29 19:57:51 -05:00
parent 79beddfc44
commit a1910fc0fe
2 changed files with 2 additions and 1 deletions

View File

@ -225,6 +225,7 @@ class BrozzlerWorker:
raise
except Exception as e:
if (hasattr(e, 'exc_info') and len(e.exc_info) >= 2
and hasattr(e.exc_info[1], 'code')
and e.exc_info[1].code == 430):
self.logger.info(
'youtube-dl got %s %s processing %s',

View File

@ -21,7 +21,7 @@ import setuptools
setuptools.setup(
name='brozzler',
version='1.1.dev36',
version='1.1.dev37',
description='Distributed web crawling with browsers',
url='https://github.com/internetarchive/brozzler',
author='Noah Levitt',