python/treelite/frontend.py [440:452]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      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.')

      # check if leaf_value is a list-like object
      try:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



python/treelite/frontend.py [562:572]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      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:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



