[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():
- [Commit-gnuradio] [gnuradio] branch maint updated (22e2f1a -> d063b05), git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 07/10: Merge remote-tracking branch 'geiger/fix_pfb_arb_resampler_fff' into maint, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 02/10: grc: fix for reverted commit f184ccf 'better Popen argument handling...', git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 04/10: Bring fix from other pfb_arb_resampler_* variants, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 05/10: cmake: Fix warning related to GrSetupQt4 in modern CMake, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 03/10: grc: fix printing empty traceback when a block is missing,
git <=
- [Commit-gnuradio] [gnuradio] 09/10: Fixes Coverity Defect 1229872: Memory leak in `atsci_equalizer_lms2` DTOR, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 01/10: gr-zeromq: fix python examples, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 08/10: Merge remote-tracking branch 'gnuradio-wg-grc/maint_grcwg' into maint, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 10/10: Merge remote-tracking branch 'bhilburn/cov1229872' into maint, git, 2015/08/28
- [Commit-gnuradio] [gnuradio] 06/10: grc/blocks: Fix XML RPC server to allow proper flowgraph termination, git, 2015/08/28