Skip to content

Commit 61fb6d0

Browse files
Merge branch 'master' into pre-commit-ci-update-config
2 parents 20207e3 + 5b51340 commit 61fb6d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

linopy/solvers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103

104104
available_solvers.append("cplex")
105105

106-
with contextlib.suppress(ModuleNotFoundError):
106+
with contextlib.suppress(ModuleNotFoundError, ImportError):
107107
import xpress
108108

109109
available_solvers.append("xpress")

0 commit comments

Comments
 (0)