handle case where PV returns None

This commit is contained in:
2025-02-25 11:17:13 +01:00
parent a65e9070eb
commit dbf50d3eb9

View File

@ -5,7 +5,7 @@ from slic.utils import as_shortcut
class PVStringAdjustable(PVAdjustable): class PVStringAdjustable(PVAdjustable):
def get_current_value(self): def get_current_value(self):
return self.pvs.readback.get(as_string=True).strip() return str(self.pvs.readback.get(as_string=True)).strip()
n_unds = [6, 7, 8, 9, 10, 11, 12, 13, 15, 16, 17, 18, 19, 20, 21, 22] # 14 is the CHIC n_unds = [6, 7, 8, 9, 10, 11, 12, 13, 15, 16, 17, 18, 19, 20, 21, 22] # 14 is the CHIC