From 5e84bb4e73836b8d0016b75c7ba6de0ae9af6e6e Mon Sep 17 00:00:00 2001 From: jblum Date: Sun, 30 Nov 2008 18:53:29 +0000 Subject: dont check that git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10096 221aa14e-8319-0410-a670-987f0aec2ac5 --- grc/src/platforms/base/Param.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'grc') diff --git a/grc/src/platforms/base/Param.py b/grc/src/platforms/base/Param.py index 200919c7a..6f512cb87 100644 --- a/grc/src/platforms/base/Param.py +++ b/grc/src/platforms/base/Param.py @@ -158,12 +158,7 @@ class Param(Element): #store the option self._options[key] = option #test the enum options - if self._options or self.is_enum(): - #test against bad combos of type and enum - try: assert(self._options) - except AssertionError: self._exit_with_error('At least one option must exist when type "enum" is set.') - try: assert(self.is_enum()) - except AssertionError: self._exit_with_error('Type "enum" must be set when options are present.') + if self.is_enum(): #test against options with identical keys try: assert(len(set(self.get_option_keys())) == len(self._options)) except AssertionError: self._exit_with_error('Options keys "%s" are not unique.'%self.get_option_keys()) -- cgit