Skip to content

Commit 5b5cb3e

Browse files
committed
Merge error messages
1 parent 016ed87 commit 5b5cb3e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1663,9 +1663,7 @@ def axis(self, *args, emit=True, **kwargs):
16631663
limits = args[0]
16641664
try:
16651665
xmin, xmax, ymin, ymax = limits
1666-
except ValueError:
1667-
raise ValueError('args must contain [xmin xmax ymin ymax]')
1668-
except TypeError:
1666+
except (TypeError, ValueError):
16691667
raise TypeError('the first argument to axis() must be an '
16701668
'interable of the form '
16711669
'[xmin, xmax, ymin, ymax]')

0 commit comments

Comments
 (0)