Skip to content

Commit b071f39

Browse files
authored
Merge pull request matplotlib#20855 from lpsinger/cm-attributeerror
BUG: __getattr__ must raise AttributeError if name not found (again)
2 parents 2a26787 + a228b1f commit b071f39

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/cm.py

+1
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ def __getattr__(name):
3434
_api.warn_deprecated("3.5", name=name,
3535
alternative="rcParams['image.lut']")
3636
return _LUTSIZE
37+
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
3738

3839

3940
_LUTSIZE = mpl.rcParams['image.lut']

0 commit comments

Comments
 (0)