Skip to content

Commit

Permalink
Remove conversion to string in DimensionalityError
Browse files Browse the repository at this point in the history
  • Loading branch information
hgrecco committed May 5, 2023
1 parent 02da7d4 commit 578e212
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pint/facets/plain/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -987,7 +987,7 @@ def _convert(
# 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.
Expand Down

0 comments on commit 578e212

Please sign in to comment.