--- a/connectors/PYRO/__init__.py Mon Apr 15 00:36:41 2013 +0200
+++ b/connectors/PYRO/__init__.py Wed Apr 17 10:54:17 2013 +0900
@@ -45,6 +45,7 @@
from util.Zeroconf import Zeroconf
i=r.getServiceInfo(service_type, location)
+ if i is None : raise Exception, "'%s' not found"%location ip = str(socket.inet_ntoa(i.getAddress()))
newlocation = ip+':'+port
--- a/runtime/PLCObject.py Mon Apr 15 00:36:41 2013 +0200
+++ b/runtime/PLCObject.py Wed Apr 17 10:54:17 2013 +0900
@@ -196,6 +196,9 @@
self._GetLogMessage.argtypes = [ctypes.c_uint8, ctypes.c_uint32, ctypes.c_char_p, ctypes.c_uint32, ctypes.POINTER(ctypes.c_uint32), ctypes.POINTER(ctypes.c_uint32), ctypes.POINTER(ctypes.c_uint32)]
self._loading_error = None
+ self.PythonRuntimeInit() self._loading_error = traceback.format_exc()
@@ -402,11 +405,8 @@
self.PLCStatus = "Stopped"
- self.PythonRuntimeInit()
- self.PLCStatus = "Broken"
+ self.PLCStatus = "Broken"