diff options
author | Sebastian Koslowski <koslowski@kit.edu> | 2016-04-25 11:29:01 +0200 |
---|---|---|
committer | Sebastian Koslowski <koslowski@kit.edu> | 2016-04-25 11:29:01 +0200 |
commit | c4a7a9a620fc9a1117b70e463b071ab4be9539a2 (patch) | |
tree | dd328d30a6a8b3e67910c0e98c22b97680095a64 /grc/python/Platform.py | |
parent | a3e22a162a9a567fc4159635bbb09f3a77c0fba7 (diff) |
grc: don't try to auto-generate non-hier blocks
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 |