Very minor update

This commit is contained in:
Atsushi Togo 2025-07-21 17:21:47 +09:00
parent 12dc119f56
commit 9ddbbbfa56
1 changed files with 2 additions and 1 deletions

View File

@ -617,7 +617,8 @@ def _run_pypolymlp(
ph3py.mlp.mlp,
verbose=log_level > 1,
)
except PypolymlpRelaxationError as e:
except (PypolymlpRelaxationError, ValueError) as e:
# ValueError can come from pypolymlp directly.
print_error_message(str(e))
if log_level:
print_error()