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()
|
||||
if name in dir(obj):
|
||||
return getattr(obj, name)
|
||||
raise AttributeError
|
||||
|
||||
def __get__(self, instance, value):
|
||||
return self
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue