8000 Merge pull request #9428 from cgohlke/patch-7 · matplotlib/matplotlib@281a1cd · GitHub
[go: up one dir, main page]

Skip to content

Commit 281a1cd

Browse files
authored
Merge pull request #9428 from cgohlke/patch-7
Fix NameError: name 'ArgumentError' is not defined
2 parents 2455768 + 1f1f819 commit 281a1cd

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