modelx.handle_formula_error#

handle_formula_error(handle=None)[source]#

Specifies whether to raise FormulaError

If True is given to handle, modelx does not raise FormulaError, but instead output the error message to stderr. If False is given to handle, modelx raises FormulaError, which is the default behaviour.

If no handle is given, i.e. handle is None, just returns, the current setting.

Parameters:

handle (bool, optional) – Whether to handle FormulaError

New in version 0.22.0.