Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 51a3541

Browse files
authored
Merge pull request #31489 from Jaylon0418/fix/cbook-exception-handling
Fixed: specified exception type in cbook.py
2 parents b5d2c9e + de8e267 commit 51a3541

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/matplotlib/cbook.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1032,7 +1032,7 @@ def delete_masked_points(*args):
10321032
mask = np.isfinite(xd)
10331033
if isinstance(mask, np.ndarray):
10341034
masks.append(mask)
1035-
except Exception: # Fixme: put in tuple of possible exceptions?
1035+
except (TypeError, ValueError):
10361036
pass
10371037
if len(masks):
10381038
mask = np.logical_and.reduce(masks)

0 commit comments

Comments
 (0)