Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle PermissionError in fallback code for old import name #182

Merged
merged 1 commit into from
Oct 31, 2024

Conversation

defnull
Copy link
Contributor

@defnull defnull commented Oct 30, 2024

Path.is_file() throws PermissionError if the current user is not allowed to list one of the parent directories. An import would also fail, so treat this as if the file wasn't there.

fixes #181

Path.is_file() throws PermissionError if the current user is not allowed to list one of the parent directories. An import would also fail, so treat this as if the file wasn't there.

fixes Kludex#181
@defnull
Copy link
Contributor Author

defnull commented Oct 30, 2024

Tested with PYTHONPATH=.:/root python3 -c 'import multipart and it works.

@Kludex
Copy link
Owner

Kludex commented Oct 31, 2024

Thanks @defnull 👍

@Kludex Kludex merged commit ca52662 into Kludex:master Oct 31, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rootless docker images get permission denied
2 participants