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

Skip to content

Commit 4173ba4

Browse files
authored
bugfix in axes3d
Instantiating an exception, but not raising it, has no effect. Found using lgtm.com: https://lgtm.com/projects/g/matplotlib/matplotlib/alerts/?mode=tree&severity=error&rule=1505923886371
1 parent bd015d0 commit 4173ba4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mpl_toolkits/mplot3d/axes3d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2632,7 +2632,7 @@ def calc_arrow(uvw, angle=15):
26322632
# handle args
26332633
argi = 6
26342634
if len(args) < argi:
2635-
ValueError('Wrong number of arguments. Expected %d got %d' %
2635+
raise ValueError('Wrong number of arguments. Expected %d got %d' %
26362636
(argi, len(args)))
26372637

26382638
# first 6 arguments are X, Y, Z, U, V, W

0 commit comments

Comments
 (0)