mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-04-20 07:45:50 -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
@ -48,7 +48,8 @@ class ReachedLimit(Exception):
|
||||
|
||||
def __repr__(self):
|
||||
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):
|
||||
return self.__repr__()
|
||||
|
Loading…
x
Reference in New Issue
Block a user