diff options
author | Josh Blum | 2009-09-05 00:54:56 -0700 |
---|---|---|
committer | Josh Blum | 2009-09-05 00:54:56 -0700 |
commit | 4cc3667b348d58ef4fb30f0ecbe494cdb109fc83 (patch) | |
tree | 93f72567d6bf5847b5d318e3b58da10d23f26805 /grc/python | |
parent | 58cebfd63726dc2082ab31681afcd78e25c36132 (diff) | |
download | gnuradio-4cc3667b348d58ef4fb30f0ecbe494cdb109fc83.tar.gz gnuradio-4cc3667b348d58ef4fb30f0ecbe494cdb109fc83.tar.bz2 gnuradio-4cc3667b348d58ef4fb30f0ecbe494cdb109fc83.zip |
better error msg for empty statements
Diffstat (limited to 'grc/python')
-rw-r--r-- | grc/python/FlowGraph.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/grc/python/FlowGraph.py b/grc/python/FlowGraph.py index 6b2936c75..4dd18a81f 100644 --- a/grc/python/FlowGraph.py +++ b/grc/python/FlowGraph.py @@ -42,6 +42,7 @@ class FlowGraph(_FlowGraph, _GUIFlowGraph): @param namespace_hash a unique hash for the namespace @return the resultant object """ + if not code: raise Exception, 'Cannot evaluate empty statement.' my_hash = hash(code) ^ namespace_hash #cache if does not exist if not self._eval_cache.has_key(my_hash): |