# HG changeset patch
# User Edouard Tisserant
# Date 1525934030 -7200
# Node ID 28af541d776b07557f6870bdcddc3f93e30fcfd0
# Parent  2076df8743b56b83bc4899d2f86074342c63294b
Allow deleting configuration tree node with no corresponding directory in project tree

diff -r 2076df8743b5 -r 28af541d776b ConfigTreeNode.py
--- 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: