You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/home/paul/.local/lib/python3.9/site-packages/ais_tools/tagblock.py", line 141, in decode_tagblock
[int(part) for part in value.split("-")])))
File "/home/paul/.local/lib/python3.9/site-packages/ais_tools/tagblock.py", line 141, in <listcomp>
[int(part) for part in value.split("-")])))
ValueError: invalid literal for int() with base 10: ''
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/paul/.local/bin/ais-tools", line 8, in <module>
sys.exit(cli())
File "/home/paul/.local/lib/python3.9/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/home/paul/.local/lib/python3.9/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/home/paul/.local/lib/python3.9/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/paul/.local/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/paul/.local/lib/python3.9/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/home/paul/.local/lib/python3.9/site-packages/ais_tools/cli.py", line 104, in update_tagblock
output.write(tagblock.update_tagblock(nmea.strip(), **fields))
File "/home/paul/.local/lib/python3.9/site-packages/ais_tools/tagblock.py", line 159, in update_tagblock
tagblock = decode_tagblock(tagblock_str)
File "/home/paul/.local/lib/python3.9/site-packages/ais_tools/tagblock.py", line 152, in decode_tagblock
raise DecodeError('Unable to decode tagblock string')
_ais.DecodeError: Unable to decode tagblock string
The text was updated successfully, but these errors were encountered:
pwoods25443
changed the title
Bug in tagblock decode
update-tagblock fails on malformed group field in tagblock
Jan 19, 2023
The bug reported in
Version: v0.1.5.dev4
(dev branch)The group tag decode raises ValueError when the group tag is malformed. This example came up in some historical AIS data we were ingesting
when you run
you get
The text was updated successfully, but these errors were encountered: