Skip to content

Commit e7b6eda

Browse files
committed
Fixed fall through error in binary operation
1 parent 1b89c49 commit e7b6eda

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spatialmath/baseposematrix.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1683,7 +1683,8 @@ def _op2(left, right: Self, op: Callable): # pylint: disable=no-self-argument
16831683
return op(left.A, right)
16841684
else:
16851685
return [op(x, right) for x in left.A]
1686-
1686+
else:
1687+
raise ValueError(f'Invalid type ({right.__class__}) for binary operation with {left.__class__}')
16871688

16881689
if __name__ == "__main__":
16891690
from spatialmath import SE3, SE2, SO2

0 commit comments

Comments
 (0)