diff options
author | Josh Blum | 2011-04-14 10:05:33 -0700 |
---|---|---|
committer | Josh Blum | 2011-04-14 10:05:33 -0700 |
commit | 4cdd41c1046cef12601602bd38dc8ebf42d1550d (patch) | |
tree | ec1fb606bfaa6ffe79d677c3bd4a5fa64c18f7bf /grc/python/Connection.py | |
parent | 8fb43aa9093fbbb5c9d8b9418c144dbf33730127 (diff) | |
download | gnuradio-4cdd41c1046cef12601602bd38dc8ebf42d1550d.tar.gz gnuradio-4cdd41c1046cef12601602bd38dc8ebf42d1550d.tar.bz2 gnuradio-4cdd41c1046cef12601602bd38dc8ebf42d1550d.zip |
grc: replaced asserts in python subdirectory
Diffstat (limited to 'grc/python/Connection.py')
-rw-r--r-- | grc/python/Connection.py | 6 |
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)) |