equal
deleted
inserted
replaced
95 except Exception: |
95 except Exception: |
96 confnodesroot.logger.write_error(_("Connection to '%s' failed with exception '%s'\n") % (location, str(e))) |
96 confnodesroot.logger.write_error(_("Connection to '%s' failed with exception '%s'\n") % (location, str(e))) |
97 #confnodesroot.logger.write_error(traceback.format_exc()) |
97 #confnodesroot.logger.write_error(traceback.format_exc()) |
98 return None |
98 return None |
99 |
99 |
|
100 RemotePLCObjectProxy.adapter.setTimeout(60) |
|
101 |
100 def PyroCatcher(func, default=None): |
102 def PyroCatcher(func, default=None): |
101 """ |
103 """ |
102 A function that catch a Pyro exceptions, write error to logger |
104 A function that catch a Pyro exceptions, write error to logger |
103 and return default value when it happen |
105 and return default value when it happen |
104 """ |
106 """ |