logger icon indicating copy to clipboard operation
logger copied to clipboard

Use `withCallingHandlers()` in `log_failure()`

Open hadley opened this issue 1 year ago • 0 comments

It's more appropriate to use withCallingHandlers() here because we want to add a side-effect, not change the return value. I doubt this will have much impact in practice, but it does make the tracebacks from errors in log_failure() a little simpler.

hadley avatar Aug 23 '24 18:08 hadley