2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 03:08:27 +08:00

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

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":