Skip to content

Commit

Permalink
minor err message change
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaume committed Jun 23, 2023
1 parent 6f9539f commit 71cc8d6
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 71cc8d6

Please sign in to comment.