summaryrefslogtreecommitdiff
path: root/grc/python/Block.py
diff options
context:
space:
mode:
authorJohnathan Corgan <johnathan@corganlabs.com>2015-06-22 07:22:35 -0700
committerJohnathan Corgan <johnathan@corganlabs.com>2015-06-22 07:22:35 -0700
commit3bff8fa02e7b8db1d07345d14c93c91efd83dafe (patch)
treea8b0b0cdecadaff03df29dc52ec415168114e8d5 /grc/python/Block.py
parent30d2f0d6af2a9e21040e9526f6238e32536d873c (diff)
parentcb3f3c64fed4e05ee3bcc1947f3855dcaddf0f2d (diff)
Merge remote-tracking branch 'gnuradio-wg-grc/maint_grcwg' into maint
Diffstat (limited to 'grc/python/Block.py')
-rw-r--r--grc/python/Block.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/grc/python/Block.py b/grc/python/Block.py
index 191b03b452..48b827792e 100644
--- a/grc/python/Block.py
+++ b/grc/python/Block.py
@@ -106,7 +106,8 @@ class Block(_Block, _GUIBlock):
current_generate_option = self.get_parent().get_option('generate_options')
for label, option in (('WX GUI', 'wx_gui'), ('QT GUI', 'qt_gui')):
if self.get_name().startswith(label) and current_generate_option != option:
- self.add_error_message("Can't generate this block in mode " + repr(option))
+ self.add_error_message("Can't generate this block in mode " +
+ repr(current_generate_option))
def rewrite(self):
"""