`catch_warnings()` doesn't accept a category argument, but `simplefilter` does. I've been able to make that work.