From 5fafeb8e91e23edf4c11258b81fa0cb3fc927420 Mon Sep 17 00:00:00 2001 From: Jan David Mol <mol@astron.nl> Date: Fri, 4 Dec 2020 10:16:25 +0100 Subject: [PATCH] Go to FAULT if server's interface does not match what we expect --- RCUSCC/RCUSCC/RCUSCC.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/RCUSCC/RCUSCC/RCUSCC.py b/RCUSCC/RCUSCC/RCUSCC.py index c9e9f8c6d..43e47d8a8 100644 --- a/RCUSCC/RCUSCC/RCUSCC.py +++ b/RCUSCC/RCUSCC/RCUSCC.py @@ -362,7 +362,12 @@ class RCUSCC(Device): return # Retrieve and map server attributes - self._map_attributes() + try: + self._map_attributes() + except Exception as e: + self.error_stream("Could not map server interface: %s", e) + self.Fault() + return # Start keep-alive self.opcua_connection.start() -- GitLab