]> mj.ucw.cz Git - eval.git/blobdiff - t/moe/config.py
Batch task testing works (sort of)
[eval.git] / t / moe / config.py
index 71cfbae98134367966193456b6d46a4a417c2938..7f015da92aec253a3552fc58d1ee1934c65b3ee0 100644 (file)
@@ -153,7 +153,7 @@ class MoeConfigStack:
            cfg = self.stk[pos]
            if cfg.vars.has_key(k):
                new = cfg.vars[k]
-               if new[0][0] == "a":
+               if len(new) > 0 and new[0][0] == "a":
                    v = self.do_get(k, pos-1)
                else:
                    v = ""