mirror of https://git.48k.eu/ogclient
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
parent
657af13351
commit
167fd29634
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue