better error msg for empty statements
authorJosh Blum <josh@joshknows.com>
Sat, 5 Sep 2009 07:54:56 +0000 (00:54 -0700)
committerJosh Blum <josh@joshknows.com>
Sat, 5 Sep 2009 07:54:56 +0000 (00:54 -0700)
grc/python/FlowGraph.py
grc/todo.txt

index 6b2936c7584a7824c4c747e887082b649edd3c04..4dd18a81f4cd230dbec042dfb77a2068129ed859 100644 (file)
@@ -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):
index ffc9d64dba84c64a16c1d18dad116782840ad9eb..ca9a681807ab2f054a12db7af96776b6d3325f0c 100644 (file)
@@ -68,7 +68,6 @@
 * save/restore cwd
 * threads dont die on exit in probe and variable sink
 * align param titles in paramsdialog
-* better error for blank string params
 * weird grid params misbehaving
 * params dialog needs to dynamically update for all params
   * will not update for non-enum params