Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix .addr property bug #22

Merged
merged 5 commits into from
Sep 10, 2015
Merged

Fix .addr property bug #22

merged 5 commits into from
Sep 10, 2015

Conversation

mjschultz
Copy link
Owner

Closes #19

mjschultz and others added 4 commits September 10, 2015 13:07
Hi,
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 "<stdin>", line 1, in <module>
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 mjschultz mentioned this pull request Sep 10, 2015
mjschultz added a commit that referenced this pull request Sep 10, 2015
@mjschultz mjschultz merged commit 0c91763 into master Sep 10, 2015
@mjschultz mjschultz deleted the more-addr branch September 10, 2015 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants