diff options
author | jblum | 2008-11-30 18:53:29 +0000 |
---|---|---|
committer | jblum | 2008-11-30 18:53:29 +0000 |
commit | 5e84bb4e73836b8d0016b75c7ba6de0ae9af6e6e (patch) | |
tree | f92234d094e64fc484a4a35786c606fd4737b52d /grc/src | |
parent | d52557f41f4a933d6342359fa6802149eb2df615 (diff) | |
download | gnuradio-5e84bb4e73836b8d0016b75c7ba6de0ae9af6e6e.tar.gz gnuradio-5e84bb4e73836b8d0016b75c7ba6de0ae9af6e6e.tar.bz2 gnuradio-5e84bb4e73836b8d0016b75c7ba6de0ae9af6e6e.zip |
dont check that
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10096 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'grc/src')
-rw-r--r-- | grc/src/platforms/base/Param.py | 7 |
1 files changed, 1 insertions, 6 deletions
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()) |