Skip to content

Commit

Permalink
Fix name error when failing to create README.md in data directory (#72)
Browse files Browse the repository at this point in the history
The readme_path variable doesn't exist in this branch
  • Loading branch information
cthoyt authored Nov 15, 2024
1 parent e3e67b8 commit f742a18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pystow/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,7 @@ def ensure_readme() -> None:
readme_path = get_home(ensure_exists=True).joinpath("README.md")
except PermissionError as e:
raise PermissionError(
f"PyStow was not able to create its home directory in {readme_path.parent} due to a lack of "
"PyStow was not able to create its home directory in due to a lack of "
"permissions. This can happen, e.g., if you're working on a server where you don't have full "
"rights. See https://pystow.readthedocs.io/en/latest/installation.html#configuration for instructions "
"on choosing a different home folder location for PyStow to somewhere where you have write permissions."
Expand Down

0 comments on commit f742a18

Please sign in to comment.