Skip to content

Commit

Permalink
fix incorrect formatting for file not found error in submit (#322)
Browse files Browse the repository at this point in the history
I noticed this when doing some testing with testflinger. It seems what
is meant to be an fstring isn't actually formatted. Not sure if this is
intended but I thought I'd submit a PR anyway.
  • Loading branch information
andersson1234 authored Aug 5, 2024
1 parent 4ce5fad commit a276fbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/testflinger_cli/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ def submit(self):
) as job_file:
data = job_file.read()
except FileNotFoundError:
sys.exit("File not found: {self.args.filename}")
sys.exit(f"File not found: {self.args.filename}")
job_dict = yaml.safe_load(data)

attachments_data = self.extract_attachment_data(job_dict)
Expand Down

0 comments on commit a276fbf

Please sign in to comment.