Don't try to process blank IPs

This commit is contained in:
Jack 2016-01-26 16:07:33 -05:00
parent e25be5a522
commit 49ae029572

View file

@ -516,7 +516,7 @@ class Node(object):
else: else:
raise TypeError, 'No NodeID given. Therefore we can\'t store this node' raise TypeError, 'No NodeID given. Therefore we can\'t store this node'
if self_store is True and self.externalIP is not None: if self_store is True and self.externalIP:
contact = Contact(self.id, self.externalIP, self.port, None, None) contact = Contact(self.id, self.externalIP, self.port, None, None)
compact_ip = contact.compact_ip() compact_ip = contact.compact_ip()
elif '_rpcNodeContact' in kwargs: elif '_rpcNodeContact' in kwargs: