From 167fd296343870a5e6f94eaba749bc7722d2e7cb Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Mon, 18 Mar 2024 14:55:07 +0100 Subject: utils: fix string not being defined as f-strings when they should Add the string prefix f'' to string instances formated as f-string but not properly constructed to expand the inline variables. --- src/utils/bios.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/bios.py b/src/utils/bios.py index e064ca0..1c16633 100644 --- a/src/utils/bios.py +++ b/src/utils/bios.py @@ -35,7 +35,7 @@ def get_vmlinuz_path(mountpoint): target_file = file if not target_file: - raise FileNotFoundError('vmlinuz not found in {initrd_dir}') + raise FileNotFoundError(f'vmlinuz not found in {initrd_dir}') return os.path.join(linuz_dir, target_file) @@ -48,6 +48,6 @@ def get_initrd_path(mountpoint): target_file = file if not target_file: - raise FileNotFoundError('initrd not found in {initrd_dir}') + raise FileNotFoundError(f'initrd not found in {initrd_dir}') return os.path.join(initrd_dir, target_file) -- cgit v1.2.3-18-g5258