8000 Bug in assert -> exception transformation fixed · matplotlib/matplotlib@6b6d2de · GitHub
[go: up one dir, main page]

Skip to content

Commit 6b6d2de

Browse files
committed
Bug in assert -> exception transformation fixed
1 parent c0ebd4f commit 6b6d2de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/path.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def __init__(self, vertices, codes=None, _interpolation_steps=1,
136136
else:
137137
vertices = np.asarray(vertices, np.float_)
138138

139-
if (vertices.ndim != 2) and (vertices.shape[1] != 2):
139+
if (vertices.ndim != 2) or (vertices.shape[1] != 2):
140140
msg = "'vertices' must be a 2D list or array with shape Nx2"
141141
raise ValueError(msg)
142142

0 commit comments

Comments
 (0)
0