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

L2SS-183: Do not silently return but rethrow the DevFailed exception with an explanation

parent b15f0730
No related branches found
No related tags found
1 merge request!40L2SS-183: Observation device
...@@ -284,8 +284,9 @@ class ObservationControl(Device): ...@@ -284,8 +284,9 @@ class ObservationControl(Device):
# Create the Observation device and instantiate it. # Create the Observation device and instantiate it.
self.create_dynamic_device(class_name, device_name) self.create_dynamic_device(class_name, device_name)
except DevFailed as ex: except DevFailed as ex:
self.error_stream("Cannot create the Observation device instance {} for ID={}. This means that the observation did not start.".format(device_name, id)) error_string = "Cannot create the Observation device instance {} for ID={}. This means that the observation did not start.".format(device_name, id)
return self.error_stream(error_string)
Except.re_throw_exception(ex, "DevFailed", error_string, __name__)
try: try:
# Instantiate a dynamic Tango Device "Observation". # Instantiate a dynamic Tango Device "Observation".
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment