Skip to content

Handle PermissionError in fallback code for old import name#182

Merged
Kludex merged 1 commit intoKludex:masterfrom
defnull:patch-1
Oct 31, 2024
Merged

Handle PermissionError in fallback code for old import name#182
Kludex merged 1 commit intoKludex:masterfrom
defnull:patch-1

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 👍

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