throw approperiate error when no modules added for powers
Build on RHEL9 docker image / build (push) Successful in 3m30s
Build on RHEL8 docker image / build (push) Successful in 4m47s

This commit is contained in:
2026-03-24 11:20:37 +01:00
parent fefbab77de
commit 3c2c3b3180
+2
View File
@@ -75,6 +75,8 @@ class DetectorPowers:
@property
def _powernames(self):
if self._detector.size() == 0:
raise RuntimeError("No modules added")
# always get the latest list
if hasattr(self._detector, 'powerlist'):
return [n.replace(" ", "") for n in self._detector.powerlist]