From fc6e90b1b10ff6fee4a02677eb9a211bb00f94a7 Mon Sep 17 00:00:00 2001 From: Stu Fisher Date: Mon, 26 Oct 2020 11:49:24 +0100 Subject: [PATCH] make bpm python2.7 compatible --- plugins/Bpm.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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]