summaryrefslogtreecommitdiff
path: root/grc
diff options
context:
space:
mode:
authorJosh Blum2011-10-29 16:46:19 -0700
committerJosh Blum2011-10-29 16:46:19 -0700
commit037c5f60492f9201e23671fc87dd1ed0dd5cc5c9 (patch)
tree97a8b5803604ed36d80e733c3769d0ecf7ddf658 /grc
parent1063fc81a361b5ace17a51e756cb6c6b77d18971 (diff)
downloadgnuradio-037c5f60492f9201e23671fc87dd1ed0dd5cc5c9.tar.gz
gnuradio-037c5f60492f9201e23671fc87dd1ed0dd5cc5c9.tar.bz2
gnuradio-037c5f60492f9201e23671fc87dd1ed0dd5cc5c9.zip
grc: fix bug when displaying string params
If the param contents evald successfully but not to a string, it would display None. This patch forces an exception, so the string will get auto-quoted and interpreted correctly.
Diffstat (limited to 'grc')
-rw-r--r--grc/python/Param.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/grc/python/Param.py b/grc/python/Param.py
index 5536138c1..2a7258dc7 100644
--- a/grc/python/Param.py
+++ b/grc/python/Param.py
@@ -244,6 +244,7 @@ class Param(_Param, _GUIParam):
try:
e = self.get_parent().get_parent().evaluate(v)
if isinstance(e, str): return e
+ raise Exception #want to stringify
except:
self._stringify_flag = True
return v