diff --git a/tangostationcontrol/tangostationcontrol/clients/attribute_wrapper.py b/tangostationcontrol/tangostationcontrol/clients/attribute_wrapper.py index 83c0e7464704d80b81a8867049f1e4b7bab7169f..cc0b35730427440bec8b34c2afde756b1b461557 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_.