Skip to content

Commit 7f0f300

Browse files
committed
Accept / ignore None in certain _map_config arguments
1 parent 3f2b62a commit 7f0f300

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pyomo/contrib/solver/base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -401,11 +401,11 @@ def _map_config(
401401
self.config.raise_exception_on_nonoptimal_result = (
402402
raise_exception_on_nonoptimal_result
403403
)
404-
if solver_io is not NOTSET:
404+
if solver_io is not NOTSET and solver_io is not None:
405405
raise NotImplementedError('Still working on this')
406-
if suffixes is not NOTSET:
406+
if suffixes is not NOTSET and suffixes is not None:
407407
raise NotImplementedError('Still working on this')
408-
if logfile is not NOTSET:
408+
if logfile is not NOTSET and logfile is not None:
409409
raise NotImplementedError('Still working on this')
410410
if keepfiles or 'keepfiles' in self.config:
411411
cwd = os.getcwd()

0 commit comments

Comments
 (0)