summaryrefslogtreecommitdiff
path: root/gps
diff options
context:
space:
mode:
authorFred Wright <fw@fwright.net>2016-04-13 15:50:06 -0700
committerEric S. Raymond <esr@thyrsus.com>2016-04-14 04:07:38 -0400
commit5e584724b6350ea3baf24f8b08d8c14db82f141c (patch)
treed0f94a7e9fb40f0ba9870fdb66c4e19daa3ef323 /gps
parent736eb1ffe657970fee1ed6b0b8482b9318c0f136 (diff)
downloadgpsd-5e584724b6350ea3baf24f8b08d8c14db82f141c.tar.gz
Restores json_error definition accidentally removed by 94cb114.
TESTED: Ran "scons check". Note that this doesn't test the actual change, since the exception in question is only used in certain error cases.
Diffstat (limited to 'gps')
-rw-r--r--gps/client.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/gps/client.py b/gps/client.py
index 3825bcf7..5715dfe7 100644
--- a/gps/client.py
+++ b/gps/client.py
@@ -134,6 +134,13 @@ WATCH_PPS = 0x002000 # enable PPS in raw/NMEA
WATCH_DEVICE = 0x000800 # watch specific device
+class json_error(BaseException):
+ def __init__(self, data, explanation):
+ BaseException.__init__(self)
+ self.data = data
+ self.explanation = explanation
+
+
class gpsjson(object):
"Basic JSON decoding."