Skip to content

Commit 8be47e4

Browse files
authored
Merge pull request matplotlib#30977 from r3kste/revert_exception
Revert exception handling case after numpy minver bump to 1.25
2 parents 5562c76 + fafa950 commit 8be47e4

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)