summaryrefslogtreecommitdiff
path: root/gpscap.py
diff options
context:
space:
mode:
Diffstat (limited to 'gpscap.py')
-rw-r--r--gpscap.py8
1 files changed, 6 insertions, 2 deletions
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