Fixed regression in connecting to LOCAL:// targets
authorEdouard Tisserant <edouard.tisserant@gmail.com>
Fri, 23 Nov 2018 00:45:51 +0100
changeset 2430 65ff9a309ff3
parent 2429 15f18dc8b56a
child 2458 2a70d5240300
Fixed regression in connecting to LOCAL:// targets
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,