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
I am parsing a file of all sorts of bad data and decoding it; I handle the exceptions; however this seems like a bad way to handle a missing checksum?
!AIVDM,1,1,,A,100u3FP04r28t0<WcshcQI<H0H79,0
Traceback (most recent call last): File "pyais_test.py", line 14, in <module> decoded = pyais.decode(i) File "c:\Python38\lib\site-packages\pyais\decode.py", line 34, in decode nmea = _assemble_messages(*parts) File "c:\Python38\lib\site-packages\pyais\decode.py", line 13, in _assemble_messages nmea = NMEAMessage(msg) File "c:\Python38\lib\site-packages\pyais\messages.py", line 201, in __init__ self.checksum = int(checksum[2:], 16) ValueError: invalid literal for int() with base 16: b''
All the best
The text was updated successfully, but these errors were encountered:
Maybe this is not as intended?
I am parsing a file of all sorts of bad data and decoding it; I handle the exceptions; however this seems like a bad way to handle a missing checksum?
!AIVDM,1,1,,A,100u3FP04r28t0<WcshcQI<H0H79,0
Traceback (most recent call last): File "pyais_test.py", line 14, in <module> decoded = pyais.decode(i) File "c:\Python38\lib\site-packages\pyais\decode.py", line 34, in decode nmea = _assemble_messages(*parts) File "c:\Python38\lib\site-packages\pyais\decode.py", line 13, in _assemble_messages nmea = NMEAMessage(msg) File "c:\Python38\lib\site-packages\pyais\messages.py", line 201, in __init__ self.checksum = int(checksum[2:], 16) ValueError: invalid literal for int() with base 16: b''
All the best
The text was updated successfully, but these errors were encountered: