Skip to content
Snippets Groups Projects
Commit 5fafeb8e authored by Jan David Mol's avatar Jan David Mol
Browse files

Go to FAULT if server's interface does not match what we expect

parent 86e5a13b
No related branches found
No related tags found
No related merge requests found
...@@ -362,7 +362,12 @@ class RCUSCC(Device): ...@@ -362,7 +362,12 @@ class RCUSCC(Device):
return return
# Retrieve and map server attributes # 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 # Start keep-alive
self.opcua_connection.start() self.opcua_connection.start()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment