From c95eb79245b24b09f4602b0ce8b438bafd04df6c Mon Sep 17 00:00:00 2001 From: jblum Date: Fri, 29 May 2009 22:10:40 +0000 Subject: [PATCH] Pass-up actual exception message when param evaluation fails. git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@11166 221aa14e-8319-0410-a670-987f0aec2ac5 --- grc/src/platforms/python/Param.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/grc/src/platforms/python/Param.py b/grc/src/platforms/python/Param.py index 10caa4c2..e5ac1dcf 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 -- 2.47.2