commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] [gnuradio] 03/10: grc: fix printing empty traceback wh


From: git
Subject: [Commit-gnuradio] [gnuradio] 03/10: grc: fix printing empty traceback when a block is missing
Date: Fri, 28 Aug 2015 19:19:49 +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 832563f8871623ceb133f2f70539037501a8d51f
Author: Sebastian Koslowski <address@hidden>
Date:   Wed Aug 12 14:47:56 2015 +0200

    grc: fix printing empty traceback when a block is missing
---
 grc/base/FlowGraph.py | 2 +-
 grc/gui/Messages.py   | 5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/grc/base/FlowGraph.py b/grc/base/FlowGraph.py
index fb25b46..1b263c1 100644
--- a/grc/base/FlowGraph.py
+++ b/grc/base/FlowGraph.py
@@ -293,7 +293,7 @@ class FlowGraph(Element):
                 block = self.get_new_block('dummy_block')
                 # Ugly ugly ugly
                 _initialize_dummy_block(block, block_n)
-                Messages.send_error_load('Block key "%s" not found in %s' % 
(key, self.get_parent()))
+                Messages.send_error_msg_load('Block key "%s" not found in %s' 
% (key, self.get_parent()))
 
             block.import_data(block_n)
         #build the connections
diff --git a/grc/gui/Messages.py b/grc/gui/Messages.py
index 90f508d..4bce996 100644
--- a/grc/gui/Messages.py
+++ b/grc/gui/Messages.py
@@ -76,8 +76,11 @@ def send_xml_errors_if_any(xml_failures):
 def send_start_load(file_path):
     send('\nLoading: "%s"'%file_path + '\n')
 
+def send_error_msg_load(error):
+    send('>>> Error: %s\n' % error)
+
 def send_error_load(error):
-    send('>>> Error: %s\n'%error)
+    send_error_msg_load(error)
     traceback.print_exc()
 
 def send_end_load():



reply via email to

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