commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 02/06: grc: fix generate mode error message


From: git
Subject: [Commit-gnuradio] [gnuradio] 02/06: grc: fix generate mode error message (#800)
Date: Mon, 22 Jun 2015 14:32:23 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

jcorgan pushed a commit to branch maint
in repository gnuradio.

commit 39143b6179c888c9cec58908c959c65c9f6c257c
Author: Sebastian Koslowski <address@hidden>
Date:   Fri Jun 19 08:39:34 2015 +0200

    grc: fix generate mode error message (#800)
---
 grc/python/Block.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/grc/python/Block.py b/grc/python/Block.py
index 191b03b..48b8277 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):
         """



reply via email to

[Prev in Thread] Current Thread [Next in Thread]