Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
Poulpe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
octobus
Poulpe
Commits
a5eda479
Commit
a5eda479
authored
3 months ago
by
Raphaël Gomès
Browse files
Options
Downloads
Patches
Plain Diff
errors: rename one error to be more true to its intent
parent
41184c63
No related branches found
Branches containing commit
No related tags found
2 merge requests
!45
Cleanups
,
!40
clone git too
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
python-libs/poulpe/dataenvs.py
+1
-1
1 addition, 1 deletion
python-libs/poulpe/dataenvs.py
python-libs/poulpe/errors.py
+1
-1
1 addition, 1 deletion
python-libs/poulpe/errors.py
python-libs/poulpe/runner.py
+1
-1
1 addition, 1 deletion
python-libs/poulpe/runner.py
with
3 additions
and
3 deletions
python-libs/poulpe/dataenvs.py
+
1
−
1
View file @
a5eda479
...
...
@@ -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
.
MissingDataEnvInputVar
s
(
key
)
raise
errors
.
MissingDataEnvInputVar
(
key
)
return
value
def
set_benchmark_input_var
(
self
,
key
,
value
):
...
...
This diff is collapsed.
Click to expand it.
python-libs/poulpe/errors.py
+
1
−
1
View file @
a5eda479
...
...
@@ -20,7 +20,7 @@
self
.
message
=
message
class
MissingDataEnvInputVar
s
(
KeyError
):
class
MissingDataEnvInputVar
(
KeyError
):
pass
...
...
This diff is collapsed.
Click to expand it.
python-libs/poulpe/runner.py
+
1
−
1
View file @
a5eda479
...
...
@@ -211,7 +211,7 @@
benchmark_path
,
debug
=
debug
,
)
except
errors
.
MissingDataEnvInputVar
s
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
=
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment