diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2011-02-17 07:47:28 -0500 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2011-02-17 07:47:28 -0500 |
commit | 686745b5cc7fd7c30683ebe2ac7f1f2e0328eec0 (patch) | |
tree | 3dbbad107cd90ae2aa61aa5cfec27e8a55236237 /gpscap.py | |
parent | e17d0484bdc94cda1477479bee8111a65df2579c (diff) | |
download | gpsd-686745b5cc7fd7c30683ebe2ac7f1f2e0328eec0.tar.gz |
Improved building of the hardware page.
Diffstat (limited to 'gpscap.py')
-rw-r--r-- | gpscap.py | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -147,5 +147,9 @@ class GPSDictionary(ConfigParser.RawConfigParser): if __name__ == "__main__": import sys - d = GPSDictionary() - d.HTMLDump(sys.stdout) + try: + d = GPSDictionary() + d.HTMLDump(sys.stdout) + except ConfigParser.Error, e: + print >>sys.stderr, sys.argv[0]+":", e._Error__message + raise SystemExit, 1 |