From 4cc3667b348d58ef4fb30f0ecbe494cdb109fc83 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Sat, 5 Sep 2009 00:54:56 -0700 Subject: [PATCH] better error msg for empty statements --- grc/python/FlowGraph.py | 1 + grc/todo.txt | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/grc/python/FlowGraph.py b/grc/python/FlowGraph.py index 6b2936c7..4dd18a81 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): diff --git a/grc/todo.txt b/grc/todo.txt index ffc9d64d..ca9a6818 100644 --- a/grc/todo.txt +++ b/grc/todo.txt @@ -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 -- 2.47.2