fusion-engineering / inline-python

Inline Python code directly in your Rust code
https://docs.rs/inline-python
BSD 2-Clause "Simplified" License
1.15k stars 37 forks source link

Return custom error instead of panic #49

Closed Hapique closed 10 months ago

Hapique commented 2 years ago

I checked your project and saw that when trying to get a variable you use panic! for error handling. I think it's better to return a custom error to allow users to handle the error instead of just terminating the program.