connectors/PYRO/__init__.py
changeset 1833 2269739dd098
parent 1832 0f1081928d65
child 1837 c507c363625e
equal deleted inserted replaced
1832:0f1081928d65 1833:2269739dd098
   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         """