Skip to content
Snippets Groups Projects
Commit d15988bb authored by Emanuele Laface's avatar Emanuele Laface
Browse files

Fix bug when counter is empty

parent 67f07a80
No related branches found
No related tags found
No related merge requests found
Pipeline #67378 passed
...@@ -38,7 +38,7 @@ async def get_pv(pvlist: str): ...@@ -38,7 +38,7 @@ async def get_pv(pvlist: str):
result = {} result = {}
for pv in pvs: for pv in pvs:
result[pv.pvname] = pv._args result[pv.pvname] = pv._args
if result[pv.pvname]["count"] > 1: if result[pv.pvname]["count"] is not None and result[pv.pvname]["count"] > 1:
result[pv.pvname]["value"] = result[pv.pvname]["value"].tolist() result[pv.pvname]["value"] = result[pv.pvname]["value"].tolist()
pv.clear_auto_monitor() pv.clear_auto_monitor()
return result return result
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment