summaryrefslogtreecommitdiff
path: root/grc/python/Block.py
diff options
context:
space:
mode:
authorJohnathan Corgan <johnathan@corganlabs.com>2015-06-22 07:24:07 -0700
committerJohnathan Corgan <johnathan@corganlabs.com>2015-06-22 07:24:07 -0700
commitc2fe4ec6466d9f1a1d45ad7adb923630d0770865 (patch)
treeff686cdb337bf59bd1873dfb7729f78d937464f5 /grc/python/Block.py
parent8e1e9208d2380d11f9cc16088250f2b6ad998054 (diff)
parent3bff8fa02e7b8db1d07345d14c93c91efd83dafe (diff)
Merge branch '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 5d52e2bf3c..517019c74a 100644
--- a/grc/python/Block.py
+++ b/grc/python/Block.py
@@ -103,7 +103,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):
"""