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

iotime.parse_logfile dont crash on logs without iotime messages #1833

Merged
merged 1 commit into from Aug 19, 2022

Conversation

sbailey
Copy link
Contributor

@sbailey sbailey commented Aug 19, 2022

This PR fixes a bug where desispec.io.iotime.parse_logfile(filename) would crash if given a logfile that didn't have any iotime messages in it. Now it returns None instead of crashing.

@sbailey sbailey requested a review from akremin August 19, 2022 20:03
Copy link
Member

@akremin akremin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes looks good and bonus points for adding a unit test for the identified failure mode

@akremin akremin merged commit 9ace2a2 into main Aug 19, 2022
@akremin akremin deleted the iotime_blanklog branch August 19, 2022 20:43
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

Successfully merging this pull request may close these issues.

None yet

2 participants