connectors/LPC/LPCAppProto.py
changeset 563 c74a37d156df
parent 554 6bd3f220b886
child 570 46abd6b2f639
--- a/connectors/LPC/LPCAppProto.py	Fri Jun 04 15:39:14 2010 +0200
+++ b/connectors/LPC/LPCAppProto.py	Fri Jun 04 16:11:19 2010 +0200
@@ -15,7 +15,9 @@
             if current_plc_status is not None:
                 res = transaction.ExchangeData()
             else:
-                raise LPCProtoError("LPC transaction error - controller did not answer as expected")
+                raise LPCProtoError("controller did not answer as expected")
+        except Exception, e:
+            raise LPCProtoError("LPC transaction error : "+str(e))
         finally:
             self.TransactionLock.release()
         return LPC_STATUS.get(current_plc_status,"Broken"), res