Closed VictorGoubet closed 3 months ago
Thanks for this report, I'm a little behind, but I'll get a fix in soon!
Was kind of a tricky one, the unicode character had to be in the ~3rd position (or 3rd from last) so that the string split would fail due to how Rust handles slicing strings. I've fixed this so it provides consistent (if nonsensical, MRC doesn't really support accented characters) results.
Description: When using the
match_rating_codex
function from the Jellyfish library on certain inputs (specifically, names with non-ASCII characters such as "Frédéric"), the library panics and causes a Python exceptionpyo3_runtime.PanicException: called 'Option::unwrap()' on a 'None' value
. This unexpected behavior crashes the Python interpreter, bypassing typical error handling mechanisms in Python.Steps to Reproduce:
jellyfish.match_rating_codex
function.None
or raising a catchable exception), the library panics.Expected Behavior: The library should handle all inputs gracefully, either by processing them correctly or by raising an exception that can be caught in Python.
Actual Behavior: The library panics on certain inputs, leading to a crash of the Python interpreter with the following error message:
Environment: