Skip to content

Commit 5d63555

Browse files
committed
Handle Perm Error
1 parent 523480c commit 5d63555

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/io/s3.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def get_file_and_filesystem(
3131
fs = get_fs()
3232
try:
3333
file = fs.open(_strip_schema(filepath_or_buffer), mode)
34-
except (FileNotFoundError, NoCredentialsError):
34+
except (FileNotFoundError, NoCredentialsError, PermissionError):
3535
# boto3 has troubles when trying to access a public file
3636
# when credentialed...
3737
# An OSError is raised if you have credentials, but they

0 commit comments

Comments
 (0)