forked from M-Labs/artiq
test: fix get_from_ddb
This commit is contained in:
parent
e056438cef
commit
a3fe538067
|
@ -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":
|
||||||
|
|
Loading…
Reference in New Issue