Explorar o código

HUE-6487 [aws] Bubble up errors on s3 mkdir

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

+ 1 - 1
desktop/libs/aws/src/aws/s3/s3fs.py

@@ -330,7 +330,7 @@ class S3FileSystem(object):
 
     try:
       self._get_or_create_bucket(bucket_name)
-    except S3ResponseError, e:
+    except Exception, e:
       raise S3FileSystemException(_('Failed to create S3 bucket "%s": %s') % (bucket_name, e.reason))
 
     stats = self._stats(path)