equal
deleted
inserted
replaced
86 if i is None: |
86 if i is None: |
87 raise Exception("'%s' not found" % location) |
87 raise Exception("'%s' not found" % location) |
88 ip = str(socket.inet_ntoa(i.getAddress())) |
88 ip = str(socket.inet_ntoa(i.getAddress())) |
89 port = str(i.getPort()) |
89 port = str(i.getPort()) |
90 newlocation = ip + ':' + port |
90 newlocation = ip + ':' + port |
91 confnodesroot.logger.write(_("'{a1}' is located at {a2}\n").format(a1 = location, a2 = newlocation)) |
91 confnodesroot.logger.write(_("'{a1}' is located at {a2}\n").format(a1=location, a2=newlocation)) |
92 location = newlocation |
92 location = newlocation |
93 r.close() |
93 r.close() |
94 except Exception, msg: |
94 except Exception, msg: |
95 confnodesroot.logger.write_error(_("MDNS resolution failure for '%s'\n") % location) |
95 confnodesroot.logger.write_error(_("MDNS resolution failure for '%s'\n") % location) |
96 confnodesroot.logger.write_error(traceback.format_exc()) |
96 confnodesroot.logger.write_error(traceback.format_exc()) |