connectors/PYRO/__init__.py
changeset 1744 69dfdb26f600
parent 1736 7e61baa047f0
child 1750 acf02488f37f
equal deleted inserted replaced
1743:c3c3d1318130 1744:69dfdb26f600
    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())