From ff5f26a6330dbb6b63619c76f1495f90558bf1a4 Mon Sep 17 00:00:00 2001
From: Jan David Mol <mol@astron.nl>
Date: Mon, 29 Nov 2021 08:30:46 +0000
Subject: [PATCH] L2SS-461: Simplified exception message

---
 .../tangostationcontrol/clients/attribute_wrapper.py            | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tangostationcontrol/tangostationcontrol/clients/attribute_wrapper.py b/tangostationcontrol/tangostationcontrol/clients/attribute_wrapper.py
index 83c0e7464..cc0b35730 100644
--- a/tangostationcontrol/tangostationcontrol/clients/attribute_wrapper.py
+++ b/tangostationcontrol/tangostationcontrol/clients/attribute_wrapper.py
@@ -29,7 +29,7 @@ class attribute_wrapper(attribute):
         # see also https://pytango.readthedocs.io/en/stable/server_api/server.html?highlight=devlong#module-tango.server for
         # more details about type conversion Python/numpy -> PyTango
         if "numpy" not in str(datatype) and datatype != str:
-            raise ValueError(f"Attribute needs to be a Tango-supported numpy or str type, but has type \"{(datatype,)}\"")
+            raise ValueError(f"Attribute needs to be a Tango-supported numpy or str type, but has type {datatype}")
 
         """
         Numpy has a depracated string type called numpy.str_.
-- 
GitLab