From 092573197306a72ade25bc02dc1125da011bee4e Mon Sep 17 00:00:00 2001 From: Jody Klymak Date: Wed, 18 Sep 2019 15:09:34 -0700 Subject: [PATCH] Backport PR #15296: Fix typo/bug from 18cecf7 --- lib/matplotlib/rcsetup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/rcsetup.py b/lib/matplotlib/rcsetup.py index 31f755e4375a..25de00219dc0 100644 --- a/lib/matplotlib/rcsetup.py +++ b/lib/matplotlib/rcsetup.py @@ -471,7 +471,7 @@ def validate_fontweight(s): try: return int(s) except (ValueError, TypeError): - raise ValueError(f'{s} is not a valid font weight. %s') + raise ValueError(f'{s} is not a valid font weight.') def validate_font_properties(s):