diff options
author | jblum | 2009-02-06 19:16:49 +0000 |
---|---|---|
committer | jblum | 2009-02-06 19:16:49 +0000 |
commit | 1349e1681c01fa028d906edf109a8c2b4cd22aac (patch) | |
tree | ba678def96d08d4f5ff8d3e9a053b10b4c4ccbad /grc/src/platforms | |
parent | c077a28498d2691f28e34846667575a8c4dc6859 (diff) | |
download | gnuradio-1349e1681c01fa028d906edf109a8c2b4cd22aac.tar.gz gnuradio-1349e1681c01fa028d906edf109a8c2b4cd22aac.tar.bz2 gnuradio-1349e1681c01fa028d906edf109a8c2b4cd22aac.zip |
proper check for too many connections
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@10404 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'grc/src/platforms')
-rw-r--r-- | grc/src/platforms/python/Port.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/grc/src/platforms/python/Port.py b/grc/src/platforms/python/Port.py index 73ec07242..109eecb62 100644 --- a/grc/src/platforms/python/Port.py +++ b/grc/src/platforms/python/Port.py @@ -50,7 +50,7 @@ class Port(_Port): _Port.validate(self) try: assert(self.get_enabled_connections() or self.get_optional()) except AssertionError: self._add_error_message('Port is not connected.') - try: assert(self.is_source() or len(self.get_enabled_connections()) == 1) + try: assert(self.is_source() or len(self.get_enabled_connections()) <= 1) except AssertionError: self._add_error_message('Port has too many connections.') def get_vlen(self): |