-
Notifications
You must be signed in to change notification settings - Fork 11
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
User unfriendly error message when datetime is invalid #40
Labels
help wanted
Extra attention is needed
Comments
Can you please provide traceback, where exactly this error is from? |
|
Ah, YAML is automatically creating datetime object |
Team discussion: just wrap yaml.load call with try: except and provide better error (more context) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When there's invalid date string in csv files, operator-manifest fails with ValueError raised by yaml module:
ValueError: year 0 is out of range
That is not very helpful error message as user cannot see where is the actual problem. If there's required format for some fields in csv files, those should be validated against some schema before yaml module tries to parse them
Here's snippet with invalid data:
The text was updated successfully, but these errors were encountered: