diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2010-01-29 11:19:30 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2010-01-29 11:19:30 +0000 |
commit | 50b0f4a586f1805e749d4c5df54d7a5e71b9225d (patch) | |
tree | cb0e69463fd756c18a38c9a138a9cb3b0881a53b /devtools/ais.py | |
parent | 0360c8e443f2c223e3daf052c3dc16e4f3823775 (diff) | |
download | gpsd-50b0f4a586f1805e749d4c5df54d7a5e71b9225d.tar.gz |
Error-handling tweak.
Diffstat (limited to 'devtools/ais.py')
-rwxr-xr-x | devtools/ais.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/devtools/ais.py b/devtools/ais.py index 30469f52..82c4f7ec 100755 --- a/devtools/ais.py +++ b/devtools/ais.py @@ -861,7 +861,7 @@ def parse_ais_messages(source, scaled=False, skiperr=False, verbose=0): raise KeyboardInterrupt except AISUnpackingException, e: if skiperr: - sys.stderr.write("Validation exception on type %s: %s\n" % (cooked[0][1], raw.strip())) + sys.stderr.write("%s: %s\n" % (`e`, raw.strip())) continue else: raise e |