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

add exception catch #1257

Merged
merged 2 commits into from Dec 29, 2019
Merged

Conversation

kgoebber
Copy link
Collaborator

@kgoebber kgoebber commented Dec 26, 2019

In testing the new metar parsing capabilities with the SAO WMO files that come across the LDM I ran across a problem when the date/time field was incorrect in the metar. An example is 266170, which threw a ValueError from the datetime function when the hour fell outside of the range 0..23. I was able to add another error to the try/except around determining date time and was successful in reading in a full file containing over 9000 observations.

Modified one test to cover this issue.

@dopplershift dopplershift added this to the 0.12 milestone Dec 27, 2019
@dopplershift dopplershift added Area: IO Pertains to reading data Type: Bug Something is not working like it should labels Dec 27, 2019
@dopplershift dopplershift merged commit e41c53e into Unidata:master Dec 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: IO Pertains to reading data Type: Bug Something is not working like it should
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants