Skip to content

Commit fafa950

Browse files
committed
Revert exception handling after numpy minver bump to 1.25
1 parent 1a92dc9 commit fafa950

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

lib/matplotlib/backends/backend_pdf.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2632,10 +2632,7 @@ def delta(self, other):
26322632
different = ours is not theirs
26332633
else:
26342634
different = bool(ours != theirs)
2635-
except (ValueError, DeprecationWarning):
2636-
# numpy version < 1.25 raises DeprecationWarning when array shapes
2637-
# mismatch, unlike numpy >= 1.25 which raises ValueError.
2638-
# This should be removed when numpy < 1.25 is no longer supported.
2635+
except ValueError:
26392636
ours = np.asarray(ours)
26402637
theirs = np.asarray(theirs)
26412638
different = (ours.shape != theirs.shape or

0 commit comments

Comments
 (0)