NodeIDTypeException is never called, neither in node.py neither in tree.py .