summaryrefslogtreecommitdiff
path: root/grc/base/Block.py
diff options
context:
space:
mode:
authorJosh Blum2009-08-20 01:30:23 -0700
committerJosh Blum2009-08-20 01:30:23 -0700
commitbf232a6e6e73d156c9a46c26842480352c6794c0 (patch)
tree35138c746073c4f31aad4a4f9aa826fdd4d2281c /grc/base/Block.py
parent63c928575c10741ac6a6c3c3c8be9c238e7b8432 (diff)
downloadgnuradio-bf232a6e6e73d156c9a46c26842480352c6794c0.tar.gz
gnuradio-bf232a6e6e73d156c9a46c26842480352c6794c0.tar.bz2
gnuradio-bf232a6e6e73d156c9a46c26842480352c6794c0.zip
added continuation mode for pad source and sinks
Diffstat (limited to 'grc/base/Block.py')
-rw-r--r--grc/base/Block.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/grc/base/Block.py b/grc/base/Block.py
index 82d276567..349e71f76 100644
--- a/grc/base/Block.py
+++ b/grc/base/Block.py
@@ -47,7 +47,9 @@ class TemplateArg(UserDict):
return self._param.get_evaluated()
def _get_keys(lst): return [elem.get_key() for elem in lst]
-def _get_elem(lst, key): return lst[_get_keys(lst).index(key)]
+def _get_elem(lst, key):
+ try: return lst[_get_keys(lst).index(key)]
+ except ValueError: raise ValueError, 'Key "%s" not found in %s.'%(key, _get_keys(lst))
class Block(Element):