hopefully final fix for strange infinite recursion bug
This commit is contained in:
@@ -240,6 +240,8 @@ class EncodedFile(object):
|
||||
def __getattr__(self, name):
|
||||
if hasattr(self, "buffer"):
|
||||
return getattr(self.buffer, name)
|
||||
else:
|
||||
raise AttributeError("attribute buffer of %r not set" % self)
|
||||
|
||||
|
||||
class MultiCapture(object):
|
||||
|
||||
@@ -159,6 +159,8 @@ class HookProxy:
|
||||
self.config = config
|
||||
|
||||
def __getattr__(self, name):
|
||||
if not hasattr(self, "config"):
|
||||
raise AttributeError("attribute config of %r not set" % self)
|
||||
hookmethod = getattr(self.config.hook, name)
|
||||
|
||||
def call_matching_hooks(**kwargs):
|
||||
|
||||
Reference in New Issue
Block a user