# HG changeset patch # User Goffi # Date 1470610157 -7200 # Node ID 666b42c957b5fe18154ce37d1a5d76b59729b427 # Parent cdb2591d0b8b26c9f97ee421be37ce9d6a950454 quick frontend (widget): minor profiles check on widget creation diff -r cdb2591d0b8b -r 666b42c957b5 frontends/src/quick_frontend/quick_widgets.py --- a/frontends/src/quick_frontend/quick_widgets.py Mon Aug 08 00:48:22 2016 +0200 +++ b/frontends/src/quick_frontend/quick_widgets.py Mon Aug 08 00:49:17 2016 +0200 @@ -275,10 +275,10 @@ 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):