Explorar o código

HUE-6694 [aws] Gracefully handle bucket creation error for non-DNS compliant names

Jenny Kim %!s(int64=8) %!d(string=hai) anos
pai
achega
639b3e2a65
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      desktop/libs/aws/src/aws/s3/s3fs.py

+ 2 - 0
desktop/libs/aws/src/aws/s3/s3fs.py

@@ -165,6 +165,8 @@ class S3FileSystem(object):
 
     try:
       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:
       if e.status == 404:
         return None