Issue #16382: Improve exception message of warnings.warn() for bad category.

Initial patch by Phil Elson.
4 files changed