utils: use f-string in raise ValueError in run_lzop_partcloneinfo()

Otherwise it shows:

  ValueError: Unable to process image {image_path}
master
OpenGnSys Support Team 2023-12-15 17:30:43 +01:00
parent 6c49815d73
commit 41cf2eb229
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ def run_lzop_partcloneinfo(image_path):
p2_out, p2_err = p2.communicate()
if p2.returncode != 0:
raise ValueError('Unable to process image {image_path}')
raise ValueError(f'Unable to process image {image_path}')
return p2_out