added label check on is_group item

This commit is contained in:
iLLiCiTiT 2020-12-18 19:41:04 +01:00
parent fb81f4166f
commit d0b827ccbb

View file

@ -196,6 +196,12 @@ class SettingObject:
self.key = self.schema_data["key"]
self.label = self.schema_data.get("label")
if not self.label and self._is_group:
raise ValueError(
"Item is set as `is_group` but has empty `label`."
)
@property
def user_role(self):
"""Tool is running with any user role.