mjschultz / py-radix

Python radix tree implementation for IPv4 and IPv6 prefix matching.
Other
119 stars 37 forks source link

fix bug #19

Closed aghamir closed 8 years ago

aghamir commented 8 years ago

Hi, I've found another issue. In the last test, code has this error. I've corrected this with this changes but maybe I went in a wrong way. Please check this Thanks

Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python2.7/dist-packages/radix/radix.py", line 426, in add node = self._tree4.add(prefix) File "/usr/local/lib/python2.7/dist-packages/radix/radix.py", line 124, in add while node.bitlen < bitlen or node._prefix.addr is None: AttributeError: 'NoneType' object has no attribute 'addr'

mjschultz commented 8 years ago

Available on PyPI as v0.9.3.