Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
gareth-ellis committed Jan 29, 2025
1 parent e83cf3d commit 7eec6aa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions esrally/track/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -1122,7 +1122,8 @@ def read(self, track_name, track_spec_file, mapping_dir):
track_spec = json.loads(rendered)
except jinja2.exceptions.TemplateSyntaxError as te:
self.logger.exception("Could not load [%s] due to Jinja Syntax Exception.", track_spec_file)
msg = f"Could not load '{track_spec_file}' due to Jinja Syntax Exception. The track file ({tmp.name}) likely hasn't been writen"
msg = f"Could not load '{track_spec_file}' due to Jinja Syntax Exception."
msg += f"The track file ({tmp.name}) likely hasn't been writen"
raise TrackSyntaxError(msg, te)
except jinja2.exceptions.TemplateNotFound:
self.logger.exception("Could not load [%s]", track_spec_file)
Expand Down Expand Up @@ -1702,7 +1703,7 @@ def parse_task(
completed_by_name=None,
):
if "operation" not in task_spec:
raise TrackSyntaxError("Operation missing from task spec %s in challenge '%s'.", task_spec, challenge_name)
raise TrackSyntaxError("Operation missing from task spec %s in challenge '%s'." % (task_spec, challenge_name))
op_spec = task_spec["operation"]
if isinstance(op_spec, str) and op_spec in ops:
op = ops[op_spec]
Expand Down

0 comments on commit 7eec6aa

Please sign in to comment.