Skip to content

Commit 3ecffe6

Browse files
committed
Revert commits on wrong branch
1 parent d9621fb commit 3ecffe6

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

lib/pavilion/errors.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,3 @@ class TestGroupError(PavilionError):
322322

323323
class LockfileError(PavilionError):
324324
"""Errors relating to lockfiles."""
325-
326-
class SchedConfigError(PavilionError):
327-
"""Raised when there's a problem with the scheduler configuration."""

lib/pavilion/resolver/proto_test.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,6 @@ def _permute_sched(self, var_man, used_per_vars) -> List[variables.VariableSetMa
329329

330330
sched_name = self.config['scheduler']
331331
sched = schedulers.get_plugin(sched_name)
332-
test_name = self.config.get('name', '<no name>')
333332

334333
# Resolve the variables that don't depend on sched, but have complicated relationships
335334
# we couldn't solve iteratively. If there's anything left at this point, it will

lib/pavilion/schedulers/config.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,10 @@ def check_leaves(cls, elem):
261261
raise ValueError(elem)
262262

263263

264+
class SchedConfigError(ValueError):
265+
"""Raised when there's a problem with the scheduler configuration."""
266+
267+
264268
def min_int(name, min_val, required=True):
265269
"""Return a callback that ensures the argument >= min_val. If not required,
266270
an empty value will return None."""
@@ -563,7 +567,7 @@ def _validate_config(config: Dict[str, str],
563567

564568
except ValueError as err:
565569
raise SchedConfigError("Config value for key '{}' had a validation "
566-
"error.".format(key), prior_error=err)
570+
"error.".format(key), err)
567571

568572
elif isinstance(validator, (tuple, list)):
569573
if value not in validator:

0 commit comments

Comments
 (0)