From 686745b5cc7fd7c30683ebe2ac7f1f2e0328eec0 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 17 Feb 2011 07:47:28 -0500 Subject: Improved building of the hardware page. --- gpscap.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'gpscap.py') diff --git a/gpscap.py b/gpscap.py index 950284a1..f8562fad 100644 --- a/gpscap.py +++ b/gpscap.py @@ -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 -- cgit v1.2.1