Skip to content

Commit

Permalink
cosmetic fix
Browse files Browse the repository at this point in the history
cf. scipopt#212: right assertion error message
  • Loading branch information
ramabile authored Nov 1, 2018
1 parent b243b43 commit 659ebb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyscipopt/scip.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ cdef class Model:

# turn the constant value into an Expr instance for further processing
if not isinstance(coeffs, Expr):
assert(_is_number(coeffs)), "given coefficient is neither ExprCons or number but %s" % coeffs.__class__.__name__
assert(_is_number(coeffs)), "given coefficients are neither Expr or number but %s" % coeffs.__class__.__name__
coeffs = Expr() + coeffs

if coeffs.degree() > 1:
Expand Down

0 comments on commit 659ebb7

Please sign in to comment.