connectors/PYRO/__init__.py
changeset 2536 2747d6e72eb8
parent 2493 0ad5e616d37f
child 2537 eb4a4cc41914
equal deleted inserted replaced
2535:0fab0af57950 2536:2747d6e72eb8
    71         schemename = "PYROLOC"
    71         schemename = "PYROLOC"
    72 
    72 
    73     # Try to get the proxy object
    73     # Try to get the proxy object
    74     try:
    74     try:
    75         RemotePLCObjectProxy = Pyro.core.getAttrProxyForURI(schemename + "://" + location + "/PLCObject")
    75         RemotePLCObjectProxy = Pyro.core.getAttrProxyForURI(schemename + "://" + location + "/PLCObject")
    76     except Exception, e:
    76     except Exception as e:
    77         confnodesroot.logger.write_error(
    77         confnodesroot.logger.write_error(
    78             _("Connection to {loc} failed with exception {ex}\n").format(
    78             _("Connection to {loc} failed with exception {ex}\n").format(
    79                 loc=location, exo=str(e)))
    79                 loc=location, exo=str(e)))
    80         return None
    80         return None
    81 
    81