summaryrefslogtreecommitdiff
path: root/grc/python/Connection.py
diff options
context:
space:
mode:
authorTom Rondeau2011-05-08 19:58:43 +0100
committerTom Rondeau2011-05-08 19:58:43 +0100
commita72bde633dda63c4471111894ca6b92a87318d5f (patch)
treec60e447e922b1a7076dd839ed8a94fcc9b665919 /grc/python/Connection.py
parentbdd0bd405c2ea645395917c1abb91c964210c4d9 (diff)
parent207a2ae73bd5d6cab201bb57ed8db64fd54cfd90 (diff)
downloadgnuradio-a72bde633dda63c4471111894ca6b92a87318d5f.tar.gz
gnuradio-a72bde633dda63c4471111894ca6b92a87318d5f.tar.bz2
gnuradio-a72bde633dda63c4471111894ca6b92a87318d5f.zip
Merge branch 'master' into 8psk
Diffstat (limited to 'grc/python/Connection.py')
-rw-r--r--grc/python/Connection.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/grc/python/Connection.py b/grc/python/Connection.py
index edc18841a..39f915740 100644
--- a/grc/python/Connection.py
+++ b/grc/python/Connection.py
@@ -1,5 +1,5 @@
"""
-Copyright 2008, 2009 Free Software Foundation, Inc.
+Copyright 2008-2011 Free Software Foundation, Inc.
This file is part of GNU Radio
GNU Radio Companion is free software; you can redistribute it and/or
@@ -38,5 +38,5 @@ class Connection(_Connection, _GUIConnection):
#check vector length
source_vlen = self.get_source().get_vlen()
sink_vlen = self.get_sink().get_vlen()
- try: assert source_vlen == sink_vlen
- except AssertionError: self.add_error_message('Source vector length "%s" does not match sink vector length "%s".'%(source_vlen, sink_vlen))
+ if source_vlen != sink_vlen:
+ self.add_error_message('Source vector length "%s" does not match sink vector length "%s".'%(source_vlen, sink_vlen))