forked from M-Labs/artiq
1
0
Fork 0

master/worker_db: make arguments optional in DDB entries

This commit is contained in:
Sebastien Bourdeauducq 2016-03-05 00:17:08 +08:00
parent ff4a46c278
commit 790269eee7
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ def _create_device(desc, device_mgr):
if ty == "local":
module = importlib.import_module(desc["module"])
device_class = getattr(module, desc["class"])
return device_class(device_mgr, **desc["arguments"])
return device_class(device_mgr, **desc.get("arguments", {}))
elif ty == "controller":
if desc.get("best_effort", False):
cls = BestEffortClient