diff options
author | Johnathan Corgan <johnathan@corganlabs.com> | 2016-04-25 15:42:30 -0700 |
---|---|---|
committer | Johnathan Corgan <johnathan@corganlabs.com> | 2016-04-25 15:42:30 -0700 |
commit | 4aa94044e721f1a4fbff75f5bfb32c5adb5691ea (patch) | |
tree | 1cd975d4334302953b500d5ff7bdc0d2e344b0cd /grc/python/Platform.py | |
parent | 1db085e73455204679c14ca560466d5359980adf (diff) | |
parent | c4a7a9a620fc9a1117b70e463b071ab4be9539a2 (diff) |
Merge remote-tracking branch 'gnuradio-wg-grc/maint_grcwg' into maint
Diffstat (limited to 'grc/python/Platform.py')
-rw-r--r-- | grc/python/Platform.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/grc/python/Platform.py b/grc/python/Platform.py index 2a0bbf9a9e..351f04cb95 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 |