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
Branches
Tags
1 merge request!188Resolve L2SS-461 "Replace percentage s with f in logging"
......@@ -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_.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment