inmcm/micropyGPS

Unhandled exception occured

ttadam opened this issue · 5 comments

Unhandled exception in thread started by <bound_method>
Traceback (most recent call last):
File "/flash/lib/L76micropyGPS.py", line 60, in feedMicroGPS
File "/flash/lib/micropyGPS.py", line 615, in update
File "/flash/lib/micropyGPS.py", line 372, in gpgga
File "/flash/lib/micropyGPS.py", line 363, in gpgga
IndexError: list index out of range
I created the object from repl, it was working fine.
Then I left the computer, and this is what I saw.

Hi. I think this might be a problem in L76micropyGPS.py

Do you have a copy of the Sentence that made it fail?

Sorry but no. I just used it from the REPL for something quick.

inmcm commented

What commit of micropyGPS.py and GPS receiver were you using? It looks like a truncated, but valid, GPGGA sentence was received.

I am not much of a help, sorry.
I have no idea, I just copy pasted the full code into a new .py file a 1 or 2 month ago. I checked the code, maybe there is an identifier for the version but i didn't find anythink

inmcm commented

I add some extra error IndexError handling and some general GGA parser improvements in 70bd71b
Hope that solves the issue.