# HG changeset patch
# User Edouard Tisserant
# Date 1327966906 -3600
# Node ID 761de581cf7a1cfaa2f70f1039448a0fa7d81747
# Parent  2e1a2ea6242f9e00f7cd35d6352581300da98033
Changed GetTraceVariables results unpack to something more robust in debug thread proc.

diff -r 2e1a2ea6242f -r 761de581cf7a plugger.py
--- a/plugger.py	Tue Jan 31 00:37:59 2012 +0100
+++ b/plugger.py	Tue Jan 31 00:41:46 2012 +0100
@@ -1779,7 +1779,11 @@
         self.debug_break = False
         debug_getvar_retry = 0
         while (not self.debug_break) and (self._connector is not None):
-            plc_status, debug_tick, debug_vars = self._connector.GetTraceVariables()
+            Trace = self._connector.GetTraceVariables()
+            if(Trace):
+                plc_status, debug_tick, debug_vars = Trace
+            else:
+                plc_status = None
             debug_getvar_retry += 1
             #print debug_tick, debug_vars
             if plc_status == "Started":