Skip to content

Commit

Permalink
Fix exception at roslaunch startup if python is build without ipv6 su…
Browse files Browse the repository at this point in the history
…pport.

A bit different than rosgraph fix because we do not have use_ipv6 here. See e.g. http://bugs.python.org/issue16208#msg178764
  • Loading branch information
aballier committed Oct 24, 2014
1 parent 9b96727 commit ed1b75b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/roslaunch/src/roslaunch/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def is_machine_local(machine):
:returns: True if machine is local and doesn't require remote login, ``bool``
"""
try:
machine_ips = [host[4][0] for host in socket.getaddrinfo(machine.address, 0, 0, 0, socket.SOL_TCP)]
machine_ips = [host[4][0] for host in socket.getaddrinfo(machine.address, 0, 0, 0, socket.SOL_TCP) if isinstance(host[4][0],str)]
except socket.gaierror:
raise RLException("cannot resolve host address for machine [%s]"%machine.address)
local_addresses = ['localhost'] + rosgraph.network.get_local_addresses()
Expand Down

0 comments on commit ed1b75b

Please sign in to comment.