-
Notifications
You must be signed in to change notification settings - Fork 73
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
Remove NoSuchNodeError catch in dst loading #801
Conversation
d94a482
to
faa9fd4
Compare
The problem with this function is that it is used both by individual users, which may want just a warning (IIRC, this was the original reason), and the cities, which definitely want to crash if something happens to the file.
It's been a while since I last had an issue with this function, so other, more frequent users should comment. |
Agree with point 1 that the other warnings should be changed to exceptions, but probably in another dedicated PR. For point 2: if I understand well the warnings are meant to avoid code breaking in personal analysis notebooks/scripts where the function is used and those people would also be bothered if a new argument is implemented if the default behaviour is to raise an |
I don't see the need to open another PR, but I don't have a problem with that.
Yup
I'm not sure what you are saying here. The new behavior is going to be to raise an exception in any case, right? Anyone using this function will now have to deal with that anyway. The question is whether to force them to catch the exception explicitly, i.e.
or to add an argument to their calls, which is arguably less intrusive
BTW, there is a third way: to have |
e09f375
to
77bc843
Compare
I agree that adding the extra karg is the less intrusive and probably the best option. |
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.
Clear and concise. Approved.
This PR solves issue #800. The proposed solution removes the
NoSuchNodeError
catch inload_dst
function.