Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes some client.py exceptions for Python 3.
This fixes two problems: 1) The exception syntax rework incorrectly updated two except clauses to use the new *raise* syntax rather than the new *except* syntax. 2) In Python 3, exception objects are local to the try/except block, making them inaccessible outside that block. It was probably actually an error to set the "message" to be the exception object rather than its string representation, anyway. TESTED: Ran xgps without gpsd running, and verified that the proper error box is displayed, in both Python 2 and Python 3 (with appropriate builds of the extensions). Didn't test the gpsjson.unpack ValueError case, but the syntax is the same.
- Loading branch information