diff --git a/plugins/Bpm.py b/plugins/Bpm.py index 94e9ced..8d9c47f 100644 --- a/plugins/Bpm.py +++ b/plugins/Bpm.py @@ -365,7 +365,7 @@ def write_lut_method(self,attr): else: PyTango.Except.throw_exception('WrongData',\ - f'Wrong value lut_method: {data}, use log or linear instead', + 'Wrong value lut_method: {data}, use log or linear instead'.format(data=data), 'LimaCCD Class') @@ -448,12 +448,12 @@ def write_min_max(self, attr): if data[0] > data[1]: PyTango.Except.throw_exception('WrongData',\ - f'Wrong values min_max: {data}, max < min', + 'Wrong values min_max: {data}, max < min'.format(data=data), 'LimaCCD Class') if data[0] > max or data[1] > max: PyTango.Except.throw_exception('WrongData',\ - f'Wrong value min_max: {data}, out of range {range}', + 'Wrong value min_max: {data}, out of range {range}'.format(data=data, range=range), 'LimaCCD Class' ) self.min_max[0] = data[0]