Merge branch 'develop' into release/1.0.0

This commit is contained in:
pavelbannov 2021-09-02 23:50:18 +03:00
commit 0970b1b420

View File

@ -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;