-
Notifications
You must be signed in to change notification settings - Fork 34
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
Handle missing fees data #127
Conversation
in loading fees file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good; added one minor comment.
Would you mind adding a comment in the code next to the new logic, indicating why 'fee'
is being treated specially? Something to explain that we're allowing for temporary absence of the fee data.
ratechecker/dataset.py
Outdated
if key == 'fee': | ||
continue | ||
raise | ||
except Exception: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This second except
clause isn't needed; any other exception type that isn't caught by the except KeyError
will bubble up the stack.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Handle temporary absence of fees data by skipping fees data load when fees file is not found.