From 1a700999744162491b7f3a5d99a5249c7e6c22f2 Mon Sep 17 00:00:00 2001 From: Markus Zolliker Date: Tue, 17 Jun 2025 10:10:14 +0200 Subject: [PATCH] sea: fix problem with LscDrivable.read_value --- frappy_psi/sea.py | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/frappy_psi/sea.py b/frappy_psi/sea.py index af84181..1234d23 100644 --- a/frappy_psi/sea.py +++ b/frappy_psi/sea.py @@ -892,13 +892,9 @@ class LscDrivable(SeaDrivable): def read_value(self): if self.io.syncio: - try: - if self.dblctrl and not self._read_value_error: - reply = self.io.query('hval tt', True) - else: - reply = self.io.query(f'hval tt/{self.rel_paths[1]}', True) - except Exception as e: - print(e) - # an updateEvent will be handled before above returns + if self.dblctrl and not self._read_value_error: + reply = self.io.query('hval tt', True) + else: + reply = self.io.query(f'hval tt/{self._sensor_path}', True) return float(reply) return self.value