-
Notifications
You must be signed in to change notification settings - Fork 189
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
Python json_fhir_string_to_proto raises wrong exception type #29
Comments
Hey @gitpushdashf 👋 Within codes, we should be raising an instance of As an aside, I've also filed a bug internally to review our error handling for Thank you again! |
You're welcome. Thank you for looking into this! |
Hi everyone,
According to https://github.com/google/fhir/blame/master/py/google/fhir/r4/json_format.py#L82,L83
json_fhir_string_to_proto()
should raiseInvalidFhirError
.In this example, it raises
ValueError
instead. I have not tested with the latest google-fhir but am suspecting the results may be the same.Let me know if anything is unclear. The error is under the type field. Happy to help dig in further if need be.
Thank you for your time.
The text was updated successfully, but these errors were encountered: