ConfigTreeNode.py
changeset 2004 28af541d776b
parent 2003 2076df8743b5
child 2182 eeca1aff0691
--- a/ConfigTreeNode.py	Mon May 07 15:10:39 2018 +0200
+++ b/ConfigTreeNode.py	Thu May 10 08:33:50 2018 +0200
@@ -499,7 +499,10 @@
         # Call the OnCloseMethod
         CTNInstance.OnCTNClose()
         # Delete confnode dir
-        shutil.rmtree(CTNInstance.CTNPath())
+        try:
+            shutil.rmtree(CTNInstance.CTNPath())
+        except:
+            pass
         # Remove child of Children
         self.Children[CTNInstance.CTNType].remove(CTNInstance)
         if len(self.Children[CTNInstance.CTNType]) == 0: