Skip to content
Snippets Groups Projects
Commit ff5f26a6 authored by Jan David Mol's avatar Jan David Mol
Browse files

L2SS-461: Simplified exception message

parent 8846c3d0
No related branches found
No related tags found
1 merge request!188Resolve L2SS-461 "Replace percentage s with f in logging"
...@@ -29,7 +29,7 @@ class attribute_wrapper(attribute): ...@@ -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 # 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 # more details about type conversion Python/numpy -> PyTango
if "numpy" not in str(datatype) and datatype != str: 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_. Numpy has a depracated string type called numpy.str_.
......
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