equal
deleted
inserted
replaced
132 return default |
132 return default |
133 return catcher_func |
133 return catcher_func |
134 |
134 |
135 # Check connection is effective. |
135 # Check connection is effective. |
136 # lambda is for getattr of GetPLCstatus to happen inside catcher |
136 # lambda is for getattr of GetPLCstatus to happen inside catcher |
137 if PyroCatcher(lambda: RemotePLCObjectProxy.GetPLCstatus())() is None: |
137 if PyroCatcher(RemotePLCObjectProxy.GetPLCstatus)() is None: |
138 confnodesroot.logger.write_error(_("Cannot get PLC status - connection failed.\n")) |
138 confnodesroot.logger.write_error(_("Cannot get PLC status - connection failed.\n")) |
139 return None |
139 return None |
140 |
140 |
141 class PyroProxyProxy(object): |
141 class PyroProxyProxy(object): |
142 """ |
142 """ |