It should be `thread.category_widget`, not only `category` (that's a change in the Python code).