From: Tomas Gavenciak Date: Wed, 22 Sep 2010 21:25:14 +0000 (+0200) Subject: Fixed ConfigVar.variables in case of no operations X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=6da41bdca7744c83e39e9e013fa422d4985aaa90;p=moe.git Fixed ConfigVar.variables in case of no operations --- 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):