handle case where PV returns None
This commit is contained in:
@ -5,7 +5,7 @@ from slic.utils import as_shortcut
|
||||
|
||||
class PVStringAdjustable(PVAdjustable):
|
||||
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
|
||||
|
Reference in New Issue
Block a user