10000 Backport PR #9428: Fix NameError: name 'ArgumentError' is not defined · matplotlib/matplotlib@42e3742 · GitHub
[go: up one dir, main page]

Skip to content

Commit 42e3742

Browse files
anntzerMeeseeksDev[bot]
authored andcommitted
Backport PR #9428: Fix NameError: name 'ArgumentError' is not defined
1 parent 50f1f1f commit 42e3742

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/mathtext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1838,7 +1838,7 @@ def __init__(self, glue_type, copy=False):
18381838
elif isinstance(glue_type, GlueSpec):
18391839
glue_spec = glue_type
18401840
else:
1841-
raise ArgumentError("glue_type must be a glue spec name or instance.")
1841+
raise ValueError("glue_type must be a glue spec name or instance.")
18421842
if copy:
18431843
glue_spec = glue_spec.copy()
18441844
self.glue_spec = glue_spec

0 commit comments

Comments
 (0)
0