Skip to content

Commit 0fb49f9

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent dc704f5 commit 0fb49f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

linopy/solvers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"mosek",
4949
"copt",
5050
"mindopt",
51-
"knitro"
51+
"knitro",
5252
]
5353

5454
# Solvers that don't need a solution file when keep_files=False
@@ -147,7 +147,7 @@ class xpress_Namespaces: # type: ignore[no-redef]
147147
pass
148148

149149
with contextlib.suppress(ModuleNotFoundError, ImportError):
150-
import knitro
150+
pass
151151

152152
quadratic_solvers = [s for s in QUADRATIC_SOLVERS if s in available_solvers]
153153
logger = logging.getLogger(__name__)

0 commit comments

Comments
 (0)