mirror of https://github.com/m-labs/artiq.git
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
|
||||
try:
|
||||
for p in path:
|
||||
v = v.read[v]
|
||||
v = v[p]
|
||||
return v.read
|
||||
except KeyError:
|
||||
if default == "skip":
|
||||
|
|
Loading…
Reference in New Issue