# HG changeset patch # User Edouard Tisserant # Date 1542930351 -3600 # Node ID 65ff9a309ff33592fa2c173deaa46f502f84df0e # Parent 15f18dc8b56a3d790e0136bbbaaa779c1e02878e Fixed regression in connecting to LOCAL:// targets diff -r 15f18dc8b56a -r 65ff9a309ff3 connectors/PYRO/__init__.py --- a/connectors/PYRO/__init__.py Fri Nov 23 00:33:04 2018 +0100 +++ b/connectors/PYRO/__init__.py Fri Nov 23 00:45:51 2018 +0100 @@ -123,11 +123,11 @@ # lambda is for getattr of GetPLCstatus to happen inside catcher IDPSK = PyroCatcher(RemotePLCObjectProxy.GetPLCID)() if IDPSK is None: - confnodesroot.logger.write_error(_("Cannot get PLC ID - connection failed.\n")) - return None + confnodesroot.logger.write_warning(_("PLC did not provide identity and security infomation.\n")) + else: + ID,secret = IDPSK + PSK.UpdateID(confnodesroot.ProjectPath, ID, secret, uri) - ID,secret = IDPSK - PSK.UpdateID(confnodesroot.ProjectPath, ID, secret, uri) _special_return_funcs = { "StartPLC": False,