commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r11166 - gnuradio/trunk/grc/src/platforms/python


From: jblum
Subject: [Commit-gnuradio] r11166 - gnuradio/trunk/grc/src/platforms/python
Date: Fri, 29 May 2009 16:10:40 -0600 (MDT)

Author: jblum
Date: 2009-05-29 16:10:40 -0600 (Fri, 29 May 2009)
New Revision: 11166

Modified:
   gnuradio/trunk/grc/src/platforms/python/Param.py
Log:
Pass-up actual exception message when param evaluation fails.



Modified: gnuradio/trunk/grc/src/platforms/python/Param.py
===================================================================
--- gnuradio/trunk/grc/src/platforms/python/Param.py    2009-05-29 18:10:43 UTC 
(rev 11165)
+++ gnuradio/trunk/grc/src/platforms/python/Param.py    2009-05-29 22:10:40 UTC 
(rev 11166)
@@ -225,8 +225,8 @@
                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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]