artiq_dashboard: fix handling of moninj comment

This commit is contained in:
Sebastien Bourdeauducq 2022-03-19 22:33:31 +08:00
parent 6d92e539b1
commit 207717c740
1 changed files with 26 additions and 27 deletions

View File

@ -207,11 +207,10 @@ def setup_from_ddb(ddb):
description = set()
for k, v in ddb.items():
comment = None
if "comment" in v:
comment = v["comment"]
try:
if isinstance(v, dict) and v["type"] == "local":
if isinstance(v, dict):
comment = v.get("comment")
if v["type"] == "local":
if k == "core":
core_addr = v["arguments"]["host"]
elif v["module"] == "artiq.coredevice.ttl":