Skip to content

Commit 2d67883

Browse files
author
Robbie Muir
committed
fix tests
1 parent 1d4ca3b commit 2d67883

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

linopy/expressions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1364,7 +1364,7 @@ def __mul__(
13641364
return self._multiply_by_linear_expression(other)
13651365
else:
13661366
return self._multiply_by_constant(other)
1367-
except AssertionError:
1367+
except TypeError:
13681368
return NotImplemented
13691369

13701370
def __pow__(self, other: int) -> QuadraticExpression:

0 commit comments

Comments
 (0)