test: fix get_from_ddb

This commit is contained in:
Robert Jördens 2015-07-04 22:36:23 -06:00
parent e056438cef
commit a3fe538067
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ def get_from_ddb(*path, default="skip"):
v = FlatFileDB(os.path.join(artiq_root, "ddb.pyon")).data
try:
for p in path:
v = v.read[v]
v = v[p]
return v.read
except KeyError:
if default == "skip":