From: jblum Date: Fri, 29 May 2009 22:10:40 +0000 (+0000) Subject: Pass-up actual exception message when param evaluation fails. X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=c95eb79245b24b09f4602b0ce8b438bafd04df6c;p=debian%2Fgnuradio Pass-up actual exception message when param evaluation fails. git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@11166 221aa14e-8319-0410-a670-987f0aec2ac5 --- 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