Merge branch 'develop' into release/1.0.0
This commit is contained in:
commit
0970b1b420
@ -907,16 +907,19 @@ namespace ASC.Data.Storage.S3
|
||||
|
||||
return true;
|
||||
}
|
||||
catch (AmazonS3Exception ex)
|
||||
catch (AggregateException agg)
|
||||
{
|
||||
if (string.Equals(ex.ErrorCode, "NoSuchBucket"))
|
||||
if (agg.InnerException is AmazonS3Exception ex)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (string.Equals(ex.ErrorCode, "NoSuchBucket"))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (string.Equals(ex.ErrorCode, "NotFound"))
|
||||
{
|
||||
return false;
|
||||
if (string.Equals(ex.ErrorCode, "NotFound"))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
throw;
|
||||
|
Loading…
Reference in New Issue
Block a user