equal
deleted
inserted
replaced
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 |