From 5388fc9d84bbf21c2a45a44848c2807c271139ed Mon Sep 17 00:00:00 2001 From: Jan David Mol <mol@astron.nl> Date: Fri, 4 Dec 2020 10:10:46 +0100 Subject: [PATCH] Do not mask interface errors with stubs. Just fail. --- RCUSCC/RCUSCC/RCUSCC.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/RCUSCC/RCUSCC/RCUSCC.py b/RCUSCC/RCUSCC/RCUSCC.py index 7465c956d..cee1c437e 100644 --- a/RCUSCC/RCUSCC/RCUSCC.py +++ b/RCUSCC/RCUSCC/RCUSCC.py @@ -252,17 +252,10 @@ class RCUSCC(Device): try: return self.pcc_node.get_child(["{}:{}".format(self.name_space_index, node)]) except opcua.ua.uaerrors._auto.BadNoMatch: - self.error_stream("Could not find PCC node %s, using a dummy", node) - - class DummyNode: - def get_value(self): - pass - - def set_value(self, val): - pass - - return DummyNode() + self.error_stream("Could not find PCC node %s", node) + # Contract with hardware is broken --- cannot recover + raise def _map_attributes(self): try: -- GitLab