From 81169174000ab29bcd651464e830389c62463d5d Mon Sep 17 00:00:00 2001
From: Håkon Vågsether <haakonsv@gmail.com>
Date: Sun, 6 Jan 2019 15:17:07 +0100
Subject: 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.
---
 grc/core/FlowGraph.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'grc/core/FlowGraph.py')

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):
         """
-- 
cgit v1.2.3