connectors/PYRO/__init__.py
changeset 1581 2295fdc5c271
parent 1571 486f94a8032c
child 1595 b3cc68dd037d
equal deleted inserted replaced
1580:f37b88d3edc6 1581:2295fdc5c271
    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())