Raise AttributeError when necessary on GridFSProxy

This commit is contained in:
Harry Marr 2010-09-25 22:47:09 +01:00
parent bb24879149
commit 98bc0a7c10

View File

@ -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