mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-06-20 04:44:12 -04:00
fix exception from ReachedLimit.__repr__ when it has been instantiated implicitly and __init__ was not called
This commit is contained in:
parent
31dc6a2d97
commit
89e7c8b079
2 changed files with 3 additions and 2 deletions
|
@ -48,7 +48,8 @@ class ReachedLimit(Exception):
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return "ReachedLimit(warcprox_meta=%s,http_payload=%s)" % (
|
return "ReachedLimit(warcprox_meta=%s,http_payload=%s)" % (
|
||||||
repr(self.warcprox_meta), repr(self.http_payload))
|
repr(self.warcprox_meta) if hasattr(self, 'warcprox_meta') else None,
|
||||||
|
repr(self.http_payload) if hasattr(self, 'http_payload') else None)
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.__repr__()
|
return self.__repr__()
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -32,7 +32,7 @@ def find_package_data(package):
|
||||||
|
|
||||||
setuptools.setup(
|
setuptools.setup(
|
||||||
name='brozzler',
|
name='brozzler',
|
||||||
version='1.1b11.dev248',
|
version='1.1b11.dev249',
|
||||||
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