diff options
author | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-03-18 14:55:07 +0100 |
---|---|---|
committer | lupoDharkael <izhe@hotmail.es> | 2024-03-21 10:29:57 +0100 |
commit | 167fd296343870a5e6f94eaba749bc7722d2e7cb (patch) | |
tree | 80a5419deafd087deb233eca26ac765366f3ece9 | |
parent | 657af133518699a7462f806b3162376d173cbb69 (diff) |
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.
-rw-r--r-- | src/utils/bios.py | 4 |
1 files 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) |