benfred / py-spy

Sampling profiler for Python programs
MIT License
12.13k stars 401 forks source link

Fix error handling in sampler.rs #645

Closed benfred closed 6 months ago

benfred commented 6 months ago

We were calling unwrap_err when failing to create a PythonSpy object in sampler.rs (on the result of sending the error on a channel), when we should have been calling unwrap. Fix.

See #644