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

Skip to content

Commit 8290e7f

Browse files
committed
Fixed: cbook.py clean_data_and_mask exception type. Replaced except Exception with except(TypeError, ValueError) as the fixme comment addressed
1 parent a7fc902 commit 8290e7f

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): # Fixme: put in tuple of possible exceptions?
10361036
pass
10371037
if len(masks):
10381038
mask = np.logical_and.reduce(masks)

0 commit comments

Comments
 (0)