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

Correct the exception text

parent 7e007b04
No related branches found
No related tags found
1 merge request!10Add a convenience func to retrieve the internal attr. hist.
...@@ -9,7 +9,7 @@ def get_internal_attribute_history(device: DeviceProxy, attribute_name: str, dep ...@@ -9,7 +9,7 @@ def get_internal_attribute_history(device: DeviceProxy, attribute_name: str, dep
try: try:
history = array(device.attribute_history(attr_name = attribute_name, depth = depth)) history = array(device.attribute_history(attr_name = attribute_name, depth = depth))
except Exception as e: except Exception as e:
raise ValueError("An exception was raised when attempting to access the internal history of the attribute '{}/{}'.".format(device.name(), attribute_name)) from e raise ValueError("Cannot access the internal history of the attribute '{}/{}'.".format(device.name(), attribute_name)) from e
history_values = array([entry.value for entry in history]) history_values = array([entry.value for entry in history])
history_values_transposed = history_values.transpose() history_values_transposed = history_values.transpose()
......
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