Skip to content

Commit

Permalink
Switch error description from "float" to "number"
Browse files Browse the repository at this point in the history
  • Loading branch information
rsdefever committed Apr 1, 2021
1 parent dff8242 commit a38dfea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ele/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ def element_from_mass(mass, exact=True, duplicates="error"):
"""
if not isinstance(mass, (int, float)):
raise TypeError(
f"`string` ({mass}) must be a float. Provided {type(mass).__name__}."
f"`string` ({mass}) must be a number. Provided {type(mass).__name__}."
)

if duplicates.lower() not in ["error", "all", "none"]:
Expand Down

0 comments on commit a38dfea

Please sign in to comment.