# HG changeset patch # User Raphaël Gomès <rgomes@octobus.net> # Date 1734444859 -3600 # Tue Dec 17 15:14:19 2024 +0100 # Node ID a5eda479d2e04786303fec9e157ad1f274f2254e # Parent 41184c63b536226c820b3029fb44f934d3cbc8b2 errors: rename one error to be more true to its intent diff --git a/python-libs/poulpe/dataenvs.py b/python-libs/poulpe/dataenvs.py --- a/python-libs/poulpe/dataenvs.py +++ b/python-libs/poulpe/dataenvs.py @@ -36,7 +36,7 @@ full_key = f"bench-input-vars.{key}" value = basics.get_one_value(self._data, full_key) if value is None: - raise errors.MissingDataEnvInputVars(key) + raise errors.MissingDataEnvInputVar(key) return value def set_benchmark_input_var(self, key, value): diff --git a/python-libs/poulpe/errors.py b/python-libs/poulpe/errors.py --- a/python-libs/poulpe/errors.py +++ b/python-libs/poulpe/errors.py @@ -20,7 +20,7 @@ self.message = message -class MissingDataEnvInputVars(KeyError): +class MissingDataEnvInputVar(KeyError): pass diff --git a/python-libs/poulpe/runner.py b/python-libs/poulpe/runner.py --- a/python-libs/poulpe/runner.py +++ b/python-libs/poulpe/runner.py @@ -211,7 +211,7 @@ benchmark_path, debug=debug, ) - except errors.MissingDataEnvInputVars as exc: + except errors.MissingDataEnvInputVar as exc: # TODO it's not the lib's responsibility to write to stderr err = functools.partial(click.secho, err=True, fg="red") msg = (