|
@@ -165,6 +165,8 @@ class S3FileSystem(object):
|
|
|
|
|
|
|
|
try:
|
|
try:
|
|
|
key = self._get_key(path, validate=True)
|
|
key = self._get_key(path, validate=True)
|
|
|
|
|
+ except BotoClientError, e:
|
|
|
|
|
+ raise S3FileSystemException(_('Failed to access path "%s": %s') % (path, e.reason))
|
|
|
except S3ResponseError as e:
|
|
except S3ResponseError as e:
|
|
|
if e.status == 404:
|
|
if e.status == 404:
|
|
|
return None
|
|
return None
|