Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception tag_block parsing bad message if no line_number passed in #216

Open
andyvan-trabus opened this issue Sep 8, 2021 · 0 comments

Comments

@andyvan-trabus
Copy link
Contributor

TagQueue.put(self, line, line_num=None) has a problem if the line fails to parse, and line_num has the default value of None:

File "/home/avanpelt/git/libais/ais/tag_block.py", line 139, in put
logger.info('No NMEA match for line: %d, %s', line_num, line)
Message: 'No NMEA match for line: %d, %s'

One fix would be to use self.line_num in the logger.info call.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant