Skip to content
Snippets Groups Projects
Commit 5f3534c3 authored by Krisztián Löki's avatar Krisztián Löki
Browse files

Do not log disconnected PVs

parent ab198323
No related branches found
No related tags found
No related merge requests found
......@@ -3,6 +3,12 @@ from org.csstudio.display.builder.runtime.script import ScriptUtil
tooltip = "N/A"
# Compatibility with 4.6.3
try:
PVUtil.PVHasNoValueException
except:
setattr(PVUtil, 'PVHasNoValueException', Exception)
try:
pvStat = PVUtil.getString(pvs[0]).upper()
pvPrsStr = PVUtil.getString(pvs[2])
......@@ -37,6 +43,8 @@ try:
tooltip = pressure
else:
tooltip = pvPrsStr
except PVUtil.PVHasNoValueException:
pass
except Exception as e:
ScriptUtil.getLogger().severe(str(e))
......
......@@ -3,6 +3,12 @@ from org.csstudio.display.builder.runtime.script import ScriptUtil
tooltip = "N/A"
# Compatibility with 4.6.3
try:
PVUtil.PVHasNoValueException
except:
setattr(PVUtil, 'PVHasNoValueException', Exception)
try:
pvStat = PVUtil.getString(pvs[0]).upper()
# pvPrsStr = PVUtil.getString(pvs[2])
......@@ -39,6 +45,8 @@ try:
# tooltip = pressure
# else:
# tooltip = pvPrsStr
except PVUtil.PVHasNoValueException:
pass
except Exception as e:
ScriptUtil.getLogger().severe(str(e))
......
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