From a276fbf9ea6eb8978a64f882ab7dfb8e38660ee6 Mon Sep 17 00:00:00 2001 From: andersson1234 <129757484+andersson1234@users.noreply.github.com> Date: Mon, 5 Aug 2024 19:01:43 +0100 Subject: [PATCH] fix incorrect formatting for file not found error in submit (#322) 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. --- cli/testflinger_cli/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/testflinger_cli/__init__.py b/cli/testflinger_cli/__init__.py index b334bc25..c7b9a3d6 100644 --- a/cli/testflinger_cli/__init__.py +++ b/cli/testflinger_cli/__init__.py @@ -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)