From c12c743e6b965b06fc9d83aaf5bf2fd2d97a2240 Mon Sep 17 00:00:00 2001
From: Thomas Juerges <4-jurges@users.noreply.git.astron.nl>
Date: Fri, 2 Apr 2021 14:13:46 +0200
Subject: [PATCH] Correct the exception text

---
 lib/get_internal_attribute_history.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/get_internal_attribute_history.py b/lib/get_internal_attribute_history.py
index 0d5f79e73..b9f988827 100755
--- a/lib/get_internal_attribute_history.py
+++ b/lib/get_internal_attribute_history.py
@@ -9,7 +9,7 @@ def get_internal_attribute_history(device: DeviceProxy, attribute_name: str, dep
     try:
         history = array(device.attribute_history(attr_name = attribute_name, depth = depth))
     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_transposed = history_values.transpose()
-- 
GitLab