fix(CpuUtils): Improve cpu slice error message 60/42260/9
authorVratko Polak <[email protected]>
Thu, 5 Jun 2025 08:16:26 +0000 (10:16 +0200)
committerVratko Polak <[email protected]>
Thu, 5 Jun 2025 08:16:26 +0000 (10:16 +0200)
Change-Id: I2751fb773a800478603f776807fea17dff9cf3fa
Signed-off-by: Vratko Polak <[email protected]>
resources/libraries/python/CpuUtils.py

index 34f6801..731469a 100644 (file)
@@ -163,7 +163,7 @@ class CpuUtils:
 
         cpu_list_len = len(cpu_list)
         if cpu_cnt + skip_cnt > cpu_list_len:
-            raise RuntimeError(u"cpu_cnt + skip_cnt > length(cpu list).")
+            raise RuntimeError(f"{cpu_cnt=} + {skip_cnt=} > length({cpu_list=})")
 
         if cpu_cnt == 0:
             cpu_cnt = cpu_list_len - skip_cnt