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

Skip to content

Commit 9317fc1

Browse files
timhoffmMeeseeksDev[bot]
authored andcommitted
Backport PR #10588: Bugfix in axes3d not raising an exception
1 parent 4db6224 commit 9317fc1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/mpl_toolkits/mplot3d/axes3d.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2637,8 +2637,8 @@ def calc_arrow(uvw, angle=15):
26372637
# handle args
26382638
argi = 6
26392639
if len(args) < argi:
2640-
ValueError('Wrong number of arguments. Expected %d got %d' %
2641-
(argi, len(args)))
2640+
raise ValueError('Wrong number of arguments. Expected %d got %d' %
2641+
(argi, len(args)))
26422642

26432643
# first 6 arguments are X, Y, Z, U, V, W
26442644
input_args = args[:argi]

0 commit comments

Comments
 (0)