summaryrefslogtreecommitdiff
path: root/grc/python
diff options
context:
space:
mode:
Diffstat (limited to 'grc/python')
-rw-r--r--grc/python/flow_graph.tmpl4
1 files changed, 2 insertions, 2 deletions
diff --git a/grc/python/flow_graph.tmpl b/grc/python/flow_graph.tmpl
index bed979eacb..cf789233ec 100644
--- a/grc/python/flow_graph.tmpl
+++ b/grc/python/flow_graph.tmpl
@@ -161,10 +161,10 @@ gr.io_signaturev($(len($io_sigs)), $(len($io_sigs)), [$(', '.join($size_strs))])
$indent($blk.get_make())
#else
self.$blk.get_id() = $indent($blk.get_make())
- #if $blk.get_param('affinity').get_value()
+ #if $blk.has_param('affinity') and $blk.get_param('affinity').get_value()
(self.$blk.get_id()).set_processor_affinity($blk.get_param('affinity').get_value())
#end if
- #if (len($blk.get_sources())>0) and (int($blk.get_param('minoutbuf').get_value()) > 0)
+ #if (len($blk.get_sources())>0) and $blk.has_param('affinity') and (int($blk.get_param('minoutbuf').get_value()) > 0)
(self.$blk.get_id()).set_min_output_buffer($blk.get_param('minoutbuf').get_value())
#end if
#end if