From 76c0e2cf51c7f26661c7e0b5167c445c931d04a1 Mon Sep 17 00:00:00 2001 From: Francois Ramu Date: Mon, 5 Feb 2024 16:43:01 +0100 Subject: [PATCH] scripts: west flash with stm32CubeProgrammer error line Correct the error "F541 f-string is missing placeholders" when ruuning Flake Signed-off-by: Francois Ramu --- scripts/west_commands/runners/stm32cubeprogrammer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/west_commands/runners/stm32cubeprogrammer.py b/scripts/west_commands/runners/stm32cubeprogrammer.py index 026e53274d5..b57864ace83 100644 --- a/scripts/west_commands/runners/stm32cubeprogrammer.py +++ b/scripts/west_commands/runners/stm32cubeprogrammer.py @@ -200,7 +200,7 @@ class STM32CubeProgrammerBinaryRunner(ZephyrBinaryRunner): # flash image and run application dl_file = self.cfg.elf_file if self._use_elf else self.cfg.hex_file if dl_file is None: - raise RuntimeError(f'cannot flash; no download file was specified') + raise RuntimeError('cannot flash; no download file was specified') elif not os.path.isfile(dl_file): raise RuntimeError(f'download file {dl_file} does not exist') self.check_call(cmd + ["--download", dl_file, "--start"])