-
Notifications
You must be signed in to change notification settings - Fork 109
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
confusing error message "name 'self' is not defined" #5
Comments
@hartjesterretje thanks for your reporting, of course, this is the correct way you do the bug report. Anyway can share your code (a little bit) where you use |
Sure! See below code that gives the confusing error message. It should give an error message because jsondict does not have the correct format, but the error message is confusing.
|
* tests structure has been created, which dedicated to issues * make test coverage for Issue 5 [nazrulworld]
Thanks at lot @hartjesterretje for your reporting, |
Description
Confusing error message "name 'self' is not defined" when using method "update_with_json(self, jsondict)", while providing an incorrect format for jsondict.
What I Did
The cause of this confusing message I belive is a bug in FHIRAbstractBase._with_json_dict(cls, jsondict). The body of this classmethod refers to "self" which is not defined in this namespace.
(note: I have no experience on github, I hope this is the correct way to report small bugs)
The text was updated successfully, but these errors were encountered: