summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHernan Grecco <hgrecco@gmail.com>2023-05-05 18:39:36 -0300
committerHernan Grecco <hgrecco@gmail.com>2023-05-05 18:39:36 -0300
commit578e21210ef3a3932c0260654e241dff891e42b1 (patch)
treeca885148b185c9bdf54ed0fdc015ad25ccb8eb19
parent02da7d45c801fc3c34d44c675da90a3d5b422280 (diff)
downloadpint-578e21210ef3a3932c0260654e241dff891e42b1.tar.gz
Remove conversion to string in DimensionalityError
-rw-r--r--pint/facets/plain/registry.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pint/facets/plain/registry.py b/pint/facets/plain/registry.py
index ed46608..aca553f 100644
--- a/pint/facets/plain/registry.py
+++ b/pint/facets/plain/registry.py
@@ -987,7 +987,7 @@ class GenericPlainRegistry(Generic[QuantityT, UnitT], metaclass=RegistryMeta):
# If the source and destination dimensionality are different,
# then the conversion cannot be performed.
if src_dim != dst_dim:
- raise DimensionalityError(src, dst, str(src_dim), str(dst_dim))
+ raise DimensionalityError(src, dst, src_dim, dst_dim)
# Here src and dst have only multiplicative units left. Thus we can
# convert with a factor.