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