[BUG]: mrc::pymrc::cast_from_pyobject should throw an exception rather than returning a None #450
Closed
2 tasks done
Labels
bug
Something isn't working
Version
24.03
Which installation method(s) does this occur on?
No response
Describe the bug.
Encountered this while working on nv-morpheus/Morpheus#1539 when
cast_from_pyobject
encounters an object which is not json serializable it returns aNone
.Instead we should throw a
TypeError
since that is the error that the Python stdjson.dumps
rasises.Minimum reproducible example
Relevant log output
No response
Full env printout
No response
Other/Misc.
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: