-
Notifications
You must be signed in to change notification settings - Fork 63
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
Do not forward every attribute from Handler to Attribute #815
Do not forward every attribute from Handler to Attribute #815
Conversation
neptune/new/handler.py
Outdated
if attr: | ||
return getattr(attr, function_name)(**kwargs) | ||
else: | ||
raise AttributeError(f"No such method '{function_name}'.") |
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.
I was thinking that we could add some information, that there's no such method, because field is not "initialized" yet, but:
- it's quite due to our internal implementation, and probably this should be not user facing info
- I wanted to keep behaviour compliant with the previous one
def test_missing_attribute(self): | ||
exp = self.call_init(mode="debug") | ||
with self.assertRaises(MissingFieldException): | ||
exp["non/existing/path"].fetch() |
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.
Waiting for @Herudaio accept.
LGTM -- please update changelog and you can merge it |
736b15f
to
c69e5be
Compare
No description provided.