[PATCH v1] framework/pmd_output: fix pylama errors

Juraj Linkeš juraj.linkes at pantheon.tech
Wed Nov 24 15:12:56 CET 2021


Pylama found the following errors:
framework/pmd_output.py:80: [E] E0704 The raise statement is not inside an except clause [pylint]

Signed-off-by: Juraj Linkeš <juraj.linkes at pantheon.tech>
---
Lijuan, please add additional people to review if needed.
---
 framework/pmd_output.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/framework/pmd_output.py b/framework/pmd_output.py
index e2bf3687..113e85f6 100644
--- a/framework/pmd_output.py
+++ b/framework/pmd_output.py
@@ -77,7 +77,7 @@ class PmdOutput():
         """
         core_number = len(self.dut.cores)
         if core_number < 2:
-            raise
+            raise ValueError(f'Not enough cores on DUT {self.dut}')
         else:
             self.default_cores = "1S/2C/1T"
 
-- 
2.20.1



More information about the dts mailing list