Commit 9c3eed4
committed
Catch TypeError when validating rcParams types.
From a `matplotlibrc` point of view, the only input would be strings,
which could raise `ValueError`. But from a code point of view,
_anything_ could be assigned to `rcParams`. This raises a `TypeError`
instead of the validator message.1 parent 3b1be53 commit 9c3eed4
2 files changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
249 | | - | |
| 249 | + | |
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
257 | | - | |
258 | | - | |
259 | | - | |
| 257 | + | |
260 | 258 | | |
261 | 259 | | |
262 | 260 | | |
| |||
0 commit comments