MartijnBraam / gpsd-py3

Python 3 GPSD client
105 stars 45 forks source link

missing assignment conditions, typos correction #6

Closed baftek closed 7 years ago

baftek commented 7 years ago

In my case 'climb' was not part of a packet I got, so an KeyError exception was raised and script wasn't succeeding. Here is a list of elements that have to or not be in a packet: http://www.catb.org/gpsd/gpsd_json.html According to this, packet may have or not most of the elements, so I added appropriate conditions on them all.

MartijnBraam commented 7 years ago

This is great, I've only tested this code on a single GPS unit.

Thanks for your contribution.