Skip to content

[PEP] Checking available() on an unavailable solver should not throw an exception by default #1074

Open
@blnicho

Description

@blnicho

This PEP proposes changing the default behavior of calling the solver available() method. As was pointed out in #1064, the default behavior is to raise an exception if the solver is not found. This behavior can be changed by setting the exception_flag=False option. I propose that exception_flag=False become the default for the available method. This method is only called when there is uncertainty if the solver is available and I think it's counter intuitive for an exception to be raised when a programmer is calling something as a defensive measure to avoid future exceptions.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions