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.
master
Alejandro Sirgo Rica 2024-03-18 14:55:07 +01:00 committed by lupoDharkael
parent 657af13351
commit 167fd29634
1 changed files with 2 additions and 2 deletions

View File

@ -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)