Raise AttributeError when necessary on GridFSProxy
This commit is contained in:
parent
bb24879149
commit
98bc0a7c10
1 changed files with 1 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue