forked from M-Labs/artiq
1
0
Fork 0

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 v = FlatFileDB(os.path.join(artiq_root, "ddb.pyon")).data
try: try:
for p in path: for p in path:
v = v.read[v] v = v[p]
return v.read return v.read
except KeyError: except KeyError:
if default == "skip": if default == "skip":