summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am2
-rw-r--r--gpscap.py8
2 files changed, 7 insertions, 3 deletions
diff --git a/Makefile.am b/Makefile.am
index 34bcb587..7338ce97 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -882,7 +882,7 @@ www/writing-a-driver.html: www/writing-a-driver.xml
www/index.html: www/index.html.in
sed -e "/@DATE@/s//`date '+%B %d, %Y'`/" <www/index.html.in >www/index.html
-www/hardware.html: www/hardware-head.html gpscap.ini www/hardware-tail.html
+www/hardware.html: gpscap.py www/hardware-head.html gpscap.ini www/hardware-tail.html
(cat www/hardware-head.html; python gpscap.py; cat www/hardware-tail.html) >www/hardware.html
www/performance/performance.html: www/performance/performance.xml
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