Raise AttributeError when necessary on GridFSProxy
This commit is contained in:
@@ -528,6 +528,7 @@ class GridFSProxy(object):
|
|||||||
obj = self.get()
|
obj = self.get()
|
||||||
if name in dir(obj):
|
if name in dir(obj):
|
||||||
return getattr(obj, name)
|
return getattr(obj, name)
|
||||||
|
raise AttributeError
|
||||||
|
|
||||||
def __get__(self, instance, value):
|
def __get__(self, instance, value):
|
||||||
return self
|
return self
|
||||||
|
|||||||
Reference in New Issue
Block a user