From 6da41bdca7744c83e39e9e013fa422d4985aaa90 Mon Sep 17 00:00:00 2001 From: Tomas Gavenciak Date: Wed, 22 Sep 2010 23:25:14 +0200 Subject: [PATCH] Fixed ConfigVar.variables in case of no operations --- t/moe/config.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t/moe/config.py b/t/moe/config.py index d0d4e93..b2f788e 100644 --- a/t/moe/config.py +++ b/t/moe/config.py @@ -268,6 +268,8 @@ class ConfigVar(ConfigElem): def variables(self): "Return a set of variables used in the expressions" + if not self.operations: + return set([]) return set.union(*[ op.expression.variables() for op in self.operations ]) def fix(self): -- 2.39.2