Skip to content
Snippets Groups Projects
Commit a8394117 authored by Thomas Juerges's avatar Thomas Juerges
Browse files

Add proper rethrowing of an exception during init_device

parent 6fce9e68
No related branches found
No related tags found
No related merge requests found
......@@ -99,6 +99,7 @@ class Crossecho(Device):
except Exception as e:
print("Failed to connect to the OPC-UA server %s. Traceback: %s" % (self.OPC_Server_Name, traceback.format_exc()))
self.delete_device()
raise e
# PROTECTED REGION END # // Crossecho.init_device
def always_executed_hook(self):
......
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