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

Do not mask interface errors with stubs. Just fail.

parent 4d653777
No related branches found
No related tags found
No related merge requests found
...@@ -252,17 +252,10 @@ class RCUSCC(Device): ...@@ -252,17 +252,10 @@ class RCUSCC(Device):
try: try:
return self.pcc_node.get_child(["{}:{}".format(self.name_space_index, node)]) return self.pcc_node.get_child(["{}:{}".format(self.name_space_index, node)])
except opcua.ua.uaerrors._auto.BadNoMatch: except opcua.ua.uaerrors._auto.BadNoMatch:
self.error_stream("Could not find PCC node %s, using a dummy", node) self.error_stream("Could not find PCC node %s", node)
class DummyNode:
def get_value(self):
pass
def set_value(self, val):
pass
return DummyNode()
# Contract with hardware is broken --- cannot recover
raise
def _map_attributes(self): def _map_attributes(self):
try: try:
......
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