python/treelite/frontend.py [508:523]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      if not self.empty:
        try:
          node_key = self.node_key
        except AttributeError:
          node_key = '_'
        raise ValueError(
            'Cannot modify a non-empty node. ' + \
            'If you meant to change type of node {}, '.format(node_key) + \
            'delete it first and then add an empty node with ' + \
            'the same key.')
      try:
        # automatically create child nodes that don't exist yet
        if left_child_key not in self.tree:
          self.tree[left_child_key] = ModelBuilder.Node()
        if right_child_key not in self.tree:
          self.tree[right_child_key] = ModelBuilder.Node()
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



python/treelite/frontend.py [562:577]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      if not self.empty:
        try:
          node_key = self.node_key
        except AttributeError:
          node_key = '_'
        raise ValueError(
            'Cannot modify a non-empty node. ' + \
            'If you meant to change type of node {}, '.format(node_key) + \
            'delete it first and then add an empty node with ' + \
            'the same key.')
      try:
        # automatically create child nodes that don't exist yet
        if left_child_key not in self.tree:
          self.tree[left_child_key] = ModelBuilder.Node()
        if right_child_key not in self.tree:
          self.tree[right_child_key] = ModelBuilder.Node()
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



