commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] [gnuradio] 03/10: grc: don't try to auto-generate non-


From: git
Subject: [Commit-gnuradio] [gnuradio] 03/10: grc: don't try to auto-generate non-hier blocks
Date: Mon, 25 Apr 2016 22:56:27 +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 c4a7a9a620fc9a1117b70e463b071ab4be9539a2
Author: Sebastian Koslowski <address@hidden>
Date:   Mon Apr 25 11:29:01 2016 +0200

    grc: don't try to auto-generate non-hier blocks
---
 grc/python/Platform.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/grc/python/Platform.py b/grc/python/Platform.py
index 2a0bbf9..351f04c 100644
--- a/grc/python/Platform.py
+++ b/grc/python/Platform.py
@@ -146,6 +146,8 @@ class Platform(_Platform, _GUIPlatform):
             flow_graph.validate()
             if not flow_graph.is_valid():
                 raise Exception('Flowgraph invalid')
+            if not flow_graph.get_option('generate_options').startswith('hb'):
+                raise Exception('Not a hier block')
         except Exception as e:
             Messages.send('>>> Load Error: %r: %s\n' % (file_path, str(e)))
             return False



reply via email to

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