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

Skip to content

Commit d7db876

Browse files
committed
Revert catching of TypeError along with ValueError
1 parent 290c9c0 commit d7db876

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4265,7 +4265,7 @@ def _parse_scatter_color_args(c, edgecolors, kwargs, xsize,
42654265
# Besides *colors* will be an empty array if c == 'none'.
42664266
valid_shape = False
42674267
raise ValueError
4268-
except (ValueError, TypeError):
4268+
except ValueError:
42694269
if not valid_shape: # but at least one conversion succeeded.
42704270
raise ValueError(
42714271
"'c' argument has {nc} elements, which is not "

0 commit comments

Comments
 (0)