mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-06-22 05:44:16 -04:00
avoid "AttributeError: 'ExtractorError' object has no attribute 'code'" checking for 430 (soft limit) from youtube-dl
This commit is contained in:
parent
79beddfc44
commit
a1910fc0fe
2 changed files with 2 additions and 1 deletions
|
@ -225,6 +225,7 @@ class BrozzlerWorker:
|
||||||
raise
|
raise
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
if (hasattr(e, 'exc_info') and len(e.exc_info) >= 2
|
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):
|
and e.exc_info[1].code == 430):
|
||||||
self.logger.info(
|
self.logger.info(
|
||||||
'youtube-dl got %s %s processing %s',
|
'youtube-dl got %s %s processing %s',
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -21,7 +21,7 @@ import setuptools
|
||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name='brozzler',
|
name='brozzler',
|
||||||
version='1.1.dev36',
|
version='1.1.dev37',
|
||||||
description='Distributed web crawling with browsers',
|
description='Distributed web crawling with browsers',
|
||||||
url='https://github.com/internetarchive/brozzler',
|
url='https://github.com/internetarchive/brozzler',
|
||||||
author='Noah Levitt',
|
author='Noah Levitt',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue