quick frontend (widget): minor profiles check on widget creation
This commit is contained in:
parent
c7e84506dd
commit
21bdd2cbca
1 changed files with 2 additions and 2 deletions
|
|
@ -275,10 +275,10 @@ class QuickWidget(object):
|
|||
if not self.PROFILES_ALLOW_NONE:
|
||||
raise ValueError("profiles can't have a value of None")
|
||||
else:
|
||||
if not self.PROFILES_MULTIPLE and len(profiles) != 1:
|
||||
raise ValueError("multiple profiles are not allowed")
|
||||
for profile in profiles:
|
||||
self.addProfile(profile)
|
||||
if not self.profiles:
|
||||
raise ValueError("no profile found, use None for no profile classes")
|
||||
|
||||
@property
|
||||
def profile(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue