From 3fb1082bd42b1d4e1124953eeeee24408447e28a Mon Sep 17 00:00:00 2001 From: Sven Augustin Date: Tue, 5 Jul 2022 22:24:07 +0200 Subject: [PATCH] also catch TypeError in case a value is e.g. None --- slic/gui/daqpanels/tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slic/gui/daqpanels/tools.py b/slic/gui/daqpanels/tools.py index 4e3f904f..2c4d3a47 100644 --- a/slic/gui/daqpanels/tools.py +++ b/slic/gui/daqpanels/tools.py @@ -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