[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gpsd-dev] [PATCH] Fixes xgps breakage from commit f330da9.
From: |
Fred Wright |
Subject: |
Re: [gpsd-dev] [PATCH] Fixes xgps breakage from commit f330da9. |
Date: |
Thu, 7 Apr 2016 23:28:15 -0700 (PDT) |
On Thu, 7 Apr 2016, Fred Wright wrote:
> - if data.status == gps.STATUS_DGPS_FIX:
> + if hasattr(data, 'status') and data.status == gps.STATUS_DGPS_FIX:
In retrospect, I probably should have used data.get(), but I was
influenced by all the nearby hasattr()s. :-)
Fred Wright