diff --git a/lib/matplotlib/cbook.py b/lib/matplotlib/cbook.py index 40b47fa55780..ef7f88db50d3 100644 --- a/lib/matplotlib/cbook.py +++ b/lib/matplotlib/cbook.py @@ -1032,7 +1032,7 @@ def delete_masked_points(*args): mask = np.isfinite(xd) if isinstance(mask, np.ndarray): masks.append(mask) - except Exception: # Fixme: put in tuple of possible exceptions? + except (TypeError, ValueError): pass if len(masks): mask = np.logical_and.reduce(masks)