Raise AttributeError when necessary on GridFSProxy
This commit is contained in:
parent
bb24879149
commit
98bc0a7c10
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user