Skip to content

Commit

Permalink
Fix if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Opt-Mucca committed Feb 14, 2025
1 parent 25b9832 commit d4b4b55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyscipopt/scip.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -1901,7 +1901,7 @@ cdef class Model:
"""
if self.getMajorVersion() < MAJOR:
raise Exception("linked SCIP is not compatible to this version of PySCIPOpt - use at least version", MAJOR)
if self.getMinorVersion():
if self.getMinorVersion() < MINOR:
warnings.warn(
"linked SCIP {}.{} is not recommended for this version of PySCIPOpt - use version {}.{}.{}".format(
self.getMajorVersion(), self.getMinorVersion(), MAJOR, MINOR, PATCH))
Expand Down

0 comments on commit d4b4b55

Please sign in to comment.