python - Random Index Error -


hi thank checking out question. using python 2.7 on windows 7. have while-loop in code keep polling data. output first circle right, crashed next. result shown below. enter image description here

the code (while loop part) shown in below. enter image description here

what code (client) sending command (getdigitalsensors) server line 114, receiving result (from line 116), parsing (from line 121) , printing out.

from result (first screenshot), result (bumper bits are:) second loop got wrong, cannot figure out why...any appreciate~


Comments