diff options
author | jblum | 2009-05-29 22:10:40 +0000 |
---|---|---|
committer | jblum | 2009-05-29 22:10:40 +0000 |
commit | c95eb79245b24b09f4602b0ce8b438bafd04df6c (patch) | |
tree | 4f7ee4c3d8f23199625d0ee628169ec8c77e97a2 /grc/src/platforms | |
parent | cae024ff222b03a6e0680c8c311d145c73701dba (diff) | |
download | gnuradio-c95eb79245b24b09f4602b0ce8b438bafd04df6c.tar.gz gnuradio-c95eb79245b24b09f4602b0ce8b438bafd04df6c.tar.bz2 gnuradio-c95eb79245b24b09f4602b0ce8b438bafd04df6c.zip |
Pass-up actual exception message when param evaluation fails.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@11166 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'grc/src/platforms')
-rw-r--r-- | grc/src/platforms/python/Param.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/grc/src/platforms/python/Param.py b/grc/src/platforms/python/Param.py index 10caa4c21..e5ac1dcf6 100644 --- a/grc/src/platforms/python/Param.py +++ b/grc/src/platforms/python/Param.py @@ -225,8 +225,8 @@ class Param(_Param): elif t in ('raw', 'complex', 'real', 'int', 'complex_vector', 'real_vector', 'int_vector', 'hex'): #raise exception if python cannot evaluate this value try: e = self.get_parent().get_parent().evaluate(v) - except: - self._add_error_message('Value "%s" cannot be evaluated.'%v) + except Exception, e: + self._add_error_message('Value "%s" cannot be evaluated: %s'%(v, e)) raise Exception #raise an exception if the data is invalid if t == 'raw': return e |