diff options
author | Hernan Grecco <hgrecco@gmail.com> | 2023-05-05 18:39:36 -0300 |
---|---|---|
committer | Hernan Grecco <hgrecco@gmail.com> | 2023-05-05 18:39:36 -0300 |
commit | 578e21210ef3a3932c0260654e241dff891e42b1 (patch) | |
tree | ca885148b185c9bdf54ed0fdc015ad25ccb8eb19 | |
parent | 02da7d45c801fc3c34d44c675da90a3d5b422280 (diff) | |
download | pint-578e21210ef3a3932c0260654e241dff891e42b1.tar.gz |
Remove conversion to string in DimensionalityError
-rw-r--r-- | pint/facets/plain/registry.py | 2 |
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. |