-
Notifications
You must be signed in to change notification settings - Fork 28
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
Update cast_from_pyobject to throw on unsupported types rather than returning null #451
Update cast_from_pyobject to throw on unsupported types rather than returning null #451
Conversation
…ception Remove uneeded as_string method
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## branch-24.03 #451 +/- ##
================================================
- Coverage 73.81% 73.80% -0.01%
================================================
Files 398 398
Lines 14228 14239 +11
Branches 1108 1111 +3
================================================
+ Hits 10502 10509 +7
- Misses 3726 3730 +4
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 5 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
/merge |
…tores previous behavior prior to PR nv-morpheus#451
* Fixes an issue where the `--start_time` flag was being ignored * Prior to nv-morpheus/MRC#451 the `datetime` objects being stored in the config were being serialized to json null, after that change an exception was raised. Closes #1590 ## By Submitting this PR I confirm: - I am familiar with the [Contributing Guidelines](https://github.com/nv-morpheus/Morpheus/blob/main/docs/source/developer_guide/contributing.md). - When the PR is ready for review, new or existing tests cover these changes. - When the PR is ready for review, the documentation is up to date with these changes. Authors: - David Gardner (https://github.com/dagardner-nv) Approvers: - Michael Demoret (https://github.com/mdemoret-nv) URL: #1592
Description
cast_from_pyobject
encounters an unsupported type it returns a json null.pybind11::type_error
, matching theTypeError
exception raised by the Python stdjson.dumps
method.get_py_type_name
helper methodCloses #450
Checklist