fix(jfj-preview): add exception handler for parse_data
This commit is contained in:
@@ -213,7 +213,8 @@ class JungfrauJochPreview:
|
||||
# pylint: disable=no-member
|
||||
r = self._socket.recv_multipart(flags=zmq.NOBLOCK)
|
||||
self._parse_data(r)
|
||||
|
||||
except Exception as e:
|
||||
logger.error(f"Error while receiving data from JFJ preview stream at {self.url}: {e}")
|
||||
finally:
|
||||
# Unsubscribe from the topic
|
||||
self._socket.setsockopt(zmq.UNSUBSCRIBE, ZMQ_TOPIC_FILTER)
|
||||
|
||||
Reference in New Issue
Block a user