]> git.gag.com Git - debian/gnuradio/commitdiff
Pass-up actual exception message when param evaluation fails.
authorjblum <jblum@221aa14e-8319-0410-a670-987f0aec2ac5>
Fri, 29 May 2009 22:10:40 +0000 (22:10 +0000)
committerjblum <jblum@221aa14e-8319-0410-a670-987f0aec2ac5>
Fri, 29 May 2009 22:10:40 +0000 (22:10 +0000)
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@11166 221aa14e-8319-0410-a670-987f0aec2ac5

grc/src/platforms/python/Param.py

index 10caa4c2126a1961e8454b0f17982bdc9115fbda..e5ac1dcf6cdbb610254d92b6701ad8d437059194 100644 (file)
@@ -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