also catch TypeError in case a value is e.g. None

This commit is contained in:
2022-07-05 22:24:07 +02:00
parent 76aba6c971
commit 3fb1082bd4
+1 -1
View File
@@ -112,7 +112,7 @@ class ETADisplay(PVDisplay):
val = tc.GetValue()
try:
val = int(val)
except ValueError:
except (ValueError, TypeError):
# if any of the values is missing, cannot calculate factor
factor = None
break