summaryrefslogtreecommitdiff
path: root/gpsfake
diff options
context:
space:
mode:
Diffstat (limited to 'gpsfake')
-rwxr-xr-xgpsfake3
1 files changed, 3 insertions, 0 deletions
diff --git a/gpsfake b/gpsfake
index a85e85d6..91f326b0 100755
--- a/gpsfake
+++ b/gpsfake
@@ -215,6 +215,9 @@ if __name__ == '__main__':
except gps.client.json_error, e:
sys.stderr.write("gpsfake: JSON error on line %s is %s.\n" % (`e.data`, e.explanation))
raise SystemExit, 1
+ except KeyboardInterrupt:
+ sys.stderr.write("gpsfake: aborted\n"))
+ raise SystemExit, 1
finally:
test.cleanup();