summaryrefslogtreecommitdiff
path: root/grc/core/FlowGraph.py
diff options
context:
space:
mode:
authorHåkon Vågsether <haakonsv@gmail.com>2019-01-06 15:17:07 +0100
committerMartin Braun <martin.braun@ettus.com>2019-01-07 09:36:13 -0800
commit81169174000ab29bcd651464e830389c62463d5d (patch)
treee0f6b1880ee4eaaf4e9fcb8055bca8c24a90cef0 /grc/core/FlowGraph.py
parent41b4b6a2b835917c7616fe700a632eca8e4c8199 (diff)
grc: Fix Python Module block
Before this fix, it was not possible to add a 'Python Module' to a GRC flow graph, it would just throw exceptions when you tried.
Diffstat (limited to 'grc/core/FlowGraph.py')
-rw-r--r--grc/core/FlowGraph.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/grc/core/FlowGraph.py b/grc/core/FlowGraph.py
index bf26225e48..58e10f08b5 100644
--- a/grc/core/FlowGraph.py
+++ b/grc/core/FlowGraph.py
@@ -103,7 +103,7 @@ class FlowGraph(Element):
"""Iterate over custom code block ID and Source"""
for block in self.iter_enabled_blocks():
if block.key == 'epy_module':
- yield block.name, block.params[1].get_value()
+ yield block.name, block.params['source_code'].get_value()
def iter_enabled_blocks(self):
"""