summaryrefslogtreecommitdiff
path: root/grc/src/platforms
diff options
context:
space:
mode:
authorjblum2009-05-29 22:10:40 +0000
committerjblum2009-05-29 22:10:40 +0000
commitc95eb79245b24b09f4602b0ce8b438bafd04df6c (patch)
tree4f7ee4c3d8f23199625d0ee628169ec8c77e97a2 /grc/src/platforms
parentcae024ff222b03a6e0680c8c311d145c73701dba (diff)
downloadgnuradio-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.py4
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