try tor emove error in pydrive

This commit is contained in:
Rob Weber 2015-06-26 14:46:18 -05:00
parent 97a977c721
commit 032a772a81

View File

@ -21,9 +21,10 @@ class ApiAttribute(object):
def __del__(self, obj=None):
"""Delete value of this attribute."""
del obj.attr[self.name]
if obj.dirty.get(self.name) is not None:
del obj.dirty[self.name]
if(obj != None):
del obj.attr[self.name]
if obj.dirty.get(self.name) is not None:
del obj.dirty[self.name]
class ApiAttributeMixin(object):