From 41cf2eb229be1f076041cf68265cb853272a6477 Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Fri, 15 Dec 2023 17:30:43 +0100 Subject: utils: use f-string in raise ValueError in run_lzop_partcloneinfo() Otherwise it shows: ValueError: Unable to process image {image_path} --- src/utils/legacy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/legacy.py b/src/utils/legacy.py index def5459..0f6c53c 100644 --- a/src/utils/legacy.py +++ b/src/utils/legacy.py @@ -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 -- cgit v1.2.3-18-g5258