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

Solve zeroconf sys.exit( ..., ...) issue #69

Merged
merged 1 commit into from Jan 11, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions master_discovery_fkie/src/master_discovery_fkie/zeroconf.py
Expand Up @@ -414,7 +414,7 @@ def on_group_collision(self):
def on_group_failure(self, error):
rospy.logfatal("Template: on_group_failure - %s", error)
self.stop()
sys.exit("ERROR: Template: on_group_failure - EXIT! [%s]", error)
sys.exit("ERROR: Template: on_group_failure - EXIT! [%s]" % error)

def on_group_removed(self, name):
rospy.loginfo("Template: on_group_removed - %s", name)
Expand Down Expand Up @@ -764,7 +764,7 @@ def __init__(self, monitor_port=11611, network_id=0, domain=''):
# test the host for local entry
masterhost, masterport = MasterInfo.MasteruriToAddr(materuri)
if (masterhost in ['localhost', '127.0.0.1']):
sys.exit("'%s' is not reachable for other systems. Change the ROS_MASTER_URI!", masterhost)
sys.exit("'%s' is not reachable for other systems. Change the ROS_MASTER_URI!" % masterhost)
rpcuri = ''.join(['http://', socket.gethostname(), ':', str(monitor_port), '/'])
txtArray = ["timestamp=%s" % str(0), "master_uri=%s" % materuri, "zname=%s" % rospy.get_name(), "rpcuri=%s" % rpcuri, "network_id=%s" % self.network_id]
# the Zeroconf class, which contains the QMainLoop to receive the signals from avahi
Expand Down