Skip to content

Commit

Permalink
Merge pull request #1584 from materialsproject/dev
Browse files Browse the repository at this point in the history
minor err message change
  • Loading branch information
tschaume authored Jun 23, 2023
2 parents 6f9539f + 71cc8d6 commit 6f8b6b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mpcontribs-client/mpcontribs/client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,8 @@ def from_textfile(cls, path: Union[Path, str]):
try:
path = Path(path)
except TypeError:
raise MPContribsClientError(f"Failed to coerce {path} into pathlib.Path type.")
typ = type(path)
raise MPContribsClientError(f"use pathlib.Path or str (is: {typ}).")

content = path.read_bytes()

Expand Down

0 comments on commit 6f8b6b0

Please sign in to comment.