|
@@ -315,7 +315,7 @@ class MantisTree(NodeTree):
|
|
|
self.parsed_tree = readtree.parse_tree(self, error_popups)
|
|
self.parsed_tree = readtree.parse_tree(self, error_popups)
|
|
|
if context:
|
|
if context:
|
|
|
self.display_update(context)
|
|
self.display_update(context)
|
|
|
- self.tree_valid = True
|
|
|
|
|
|
|
+ self.tree_valid = bool(self.parsed_tree)
|
|
|
except Exception as e:
|
|
except Exception as e:
|
|
|
prRed("Failed to update node tree due to error.")
|
|
prRed("Failed to update node tree due to error.")
|
|
|
self.tree_valid = False
|
|
self.tree_valid = False
|
|
@@ -352,6 +352,8 @@ class MantisTree(NodeTree):
|
|
|
self.prevent_next_exec = False
|
|
self.prevent_next_exec = False
|
|
|
if not self.hash_recursive:
|
|
if not self.hash_recursive:
|
|
|
return
|
|
return
|
|
|
|
|
+ if not self.parsed_tree:
|
|
|
|
|
+ return
|
|
|
if self.is_exporting or self.is_executing:
|
|
if self.is_exporting or self.is_executing:
|
|
|
return
|
|
return
|
|
|
prGreen("Executing Tree: %s" % self.name)
|
|
prGreen("Executing Tree: %s" % self.name)
|