Commit 0c7a1fc5 authored by Aurel's avatar Aurel

check attribute present before trying to delete it


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16957 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 09d9680b
......@@ -472,7 +472,8 @@ class Folder(CopyContainer, CMFBTreeFolder, CMFHBTreeFolder, Base, FolderMixIn,
Remove remaining attributes from previous btree
and migration
"""
delattr(self, "_tree")
if getattr(self, "_tree", None) is not None:
delattr(self, "_tree")
def _launchCopyObjectToHBTree(self, tag):
"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment